random-crypto

2.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i random-crypto

Weekly Downloads

0

Version

2.0.2

License

ISC

Last publish

Collaborators

  • brendantelzrow