.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / math-random / readme.md
1 # math-random
2
3 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.
4
5 [![Build status](https://travis-ci.org/michaelrhodes/math-random.svg?branch=master)](https://travis-ci.org/michaelrhodes/math-random)
6
7 ## Install
8
9 ```sh
10 npm install math-random
11 ```
12
13 ### Usage
14
15 ```js
16 var random = require('math-random')
17
18 console.log(random())
19 => 0.584293719381094
20
21 console.log(random.cryptographic)
22 => true || undefined
23 ```
24
25 ### License
26 [MIT](http://opensource.org/licenses/MIT)