包详细信息

math-random

michaelrhodes8.3mCC0-1.02.0.1

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

自述文件

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