Package Exports
- math-random
- math-random/browser/crypto
- math-random/browser/index
- math-random/crypto
- math-random/node
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (math-random) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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