npm.io
2.0.1 • Published 6 years ago

math-random

Licence
CC0-1.0
Version
2.0.1
Deps
0
Size
1 kB
Vulns
0
Weekly
0
Stars
25

math-random

math-random is an isomorphic, drop-in replacement for Math.random that uses cryptographically secure random number generation, where available

ci

install

npm install math-random

use

console.log(require('math-random')())
=> 0.584293719381094

console.log(require('math-random/is-secure'))
=> true || false

obey

CC0-1.0