Skip to content

It Is A Package Which Helps In Taking In Out The Random Number By Taking In Two Values As Minimum And Maximum Value By Taking In Some Options In It.

Notifications You must be signed in to change notification settings

code08-ind/random-number-generator-pack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

random-number-generator-pack


It Is A Package Which Helps In Taking In Out The Random Number By Taking In Two Values As Minimum And Maximum Value By Taking In Some Options In It.


To Install This Package, Write Below Given Command:


npm i random-number-generator-pack

To Use This Package, Below Are Given Some Example:


let randomnum = require('random-number-generator-pack');

console.log(randomnum.random(10,20,true,3));

// 13

//14

// In This Package We Are Considering The First Value As Minimum Value, Second Value As Maximum Value, Third Value As A Boolean Value To Tell That If The Output Is Integer Or Not And The Final Option As Upto How Much Places We Need To Find The Random Number In Decimals If Third Argument Is False.

let randomnum = require('random-number-generator-pack');

console.log(randomnum.random(10,20,false,3));

// 15.234

//18.756

// In This Package We Are Considering The First Value As Minimum Value, Second Value As Maximum Value, Third Value As A Boolean Value To Tell That If The Output Is Integer Or Not And The Final Option As Upto How Much Places We Need To Find The Random Number In Decimals If Third Argument Is False.

To Contact Me For Any Contribution Or Anything Else, You Can Contact Me At:


About

It Is A Package Which Helps In Taking In Out The Random Number By Taking In Two Values As Minimum And Maximum Value By Taking In Some Options In It.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published