random-number-in-range
v1.0.2
Published
returns a random number between min and max values supplied
Downloads
5,097
Readme
random-number-in-range
Returns a random number between min (inclusive) and max (exclusive).
Install
npm i random-number-in-range
Usage
var rando = require('random-number-in-range')
console.log(rando(1, 10)) // returns a number between 1 and 10
console.log(rando(1)) // returns a number between 1 and 100
console.log(rando()) // returns a number between 0 and 100