random-crypto
A cryptographically secure PRNG for Node.js using crypto.randomBytes
install via NPM
npm install random-crypto
var random = require('random-crypto')
Methods
gen(max)
Generate a random number between 0 and max.
random.gen(100) // => 88
gen(min, max)
Generate a random number between min and max.
random.gen(-40, 100) // => -20