Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

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

Keywords

none

install

npm i random-number-in-range

Downloadsweekly downloads

52

version

1.0.2

license

Apache2

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability