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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.1
    57,889
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.1
    57,889
  • 2.0.0
    62
  • 1.0.4
    5,321,484
  • 1.0.3
    2,567
  • 1.0.2
    4,662
  • 1.0.1
    587,534
  • 1.0.0
    4

Package Sidebar

Install

npm i math-random

Weekly Downloads

1,760,209

Version

2.0.1

License

CC0-1.0

Unpacked Size

1.52 kB

Total Files

7

Last publish

Collaborators

  • michaelrhodes