random-number-in-range

1.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i random-number-in-range

Weekly Downloads

2,091

Version

1.0.2

License

Apache2

Last publish

Collaborators

  • brianleroux