66a3957d12d21879d79f860b58f6e7e7f9e6e0642d13478bcd61e3572b67be5874bfdef65116ee961747b0dd1afa9161b8ee8357916cadeaf2f3319381cbd0 590 B

1234567891011121314151617181920212223242526
  1. # math-random
  2. 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.
  3. [![Build status](https://travis-ci.org/michaelrhodes/math-random.svg?branch=master)](https://travis-ci.org/michaelrhodes/math-random)
  4. ## Install
  5. ```sh
  6. npm install math-random
  7. ```
  8. ### Usage
  9. ```js
  10. var random = require('math-random')
  11. console.log(random())
  12. => 0.584293719381094
  13. console.log(random.cryptographic)
  14. => true || undefined
  15. ```
  16. ### License
  17. [MIT](http://opensource.org/licenses/MIT)