randomgen
v1.2.0
Published
A module to generate random value in the range [min, max) or [min, max]
Downloads
8
Readme
Randomgen
Installation:
npm install randomgen
Usage:
var random = require('randomgen');
// get a random value in the range [min, max]
random.IncludeMax(0, 10) // 10 may be generated
// get a random value in the range [min, max]
random.ExcludeMax(0, 10) // High value 10 is excluded