math-random
math-random is an drop-in replacement for Math.random that uses cryptographically secure random number generation, where available. It works in both browser and node environments.
Last updated 7 years ago by michaelrhodes .
MIT · Repository · Bugs · Original npm
$ cnpm install math-random 
SYNC missed versions from official npm registry.

math-random

math-random is an drop-in replacement for Math.random that uses cryptographically secure random number generation, where available. It works in both browser and node environments.

Build status

Install

npm install math-random

Usage

var random = require('math-random')

console.log(random())
=> 0.584293719381094

console.log(random.cryptographic)
=> true || undefined

License

MIT

Current Tags

  • 1.0.4                                ...           latest (7 years ago)

1 Versions

  • 1.0.4                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org