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.

Usage no npm install needed!

<script type="module">
  import randomNumberGeneratorPack from 'https://cdn.skypack.dev/random-number-generator-pack';
</script>

README

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:


gargaryan82000@gmail.com