math-random
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/math-random package

2.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i math-random

Weekly Downloads

1,755,287

Version

2.0.1

License

CC0-1.0

Unpacked Size

1.52 kB

Total Files

7

Last publish

Collaborators

  • michaelrhodes