1.0.2 • Published 7 years ago

random-number-in-range v1.0.2

Weekly downloads
77
License
Apache2
Repository
github
Last release
7 years ago

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