2.0.2 • Published 8 years ago

random-crypto v2.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

random-crypto

A cryptographically secure PRNG for Node.js using crypto.randomBytes

Build Status

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
2.0.2

8 years ago

2.0.1

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago