random-number-in-range

returns a random number between min and max values supplied

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
random-number-in-range
1111.0.25 years ago8 years agoMinified + gzip package size for random-number-in-range in KB

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