Tennessee Gibbs 0304752480 added pages to master | il y a 6 ans | |
---|---|---|
.. | ||
.npmignore | il y a 6 ans | |
.travis.yml | il y a 6 ans | |
browser.js | il y a 6 ans | |
node.js | il y a 6 ans | |
package.json | il y a 6 ans | |
readme.md | il y a 6 ans | |
test.js | il y a 6 ans |
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.
npm install math-random
var random = require('math-random')
console.log(random())
=> 0.584293719381094
console.log(random.cryptographic)
=> true || undefined