math-random
v2.0.1
Published
math-random is an isomorphic, drop-in replacement for `Math.random` that uses cryptographically secure random number generation, where available
Downloads
9,168,092
Readme
math-random
math-random is an isomorphic, drop-in replacement for Math.random
that uses cryptographically secure random number generation, where available
install
npm install math-random
use
console.log(require('math-random')())
=> 0.584293719381094
console.log(require('math-random/is-secure'))
=> true || false