math-random
math-random is an isomorphic, drop-in replacement for `Math.random` that uses cryptographically secure random number generation, where available
Last updated 5 years ago by michaelrhodes .
CC0-1.0 · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install math-random 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.0.1                                ...           latest (5 years ago)

7 Versions

  • 2.0.1                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 1.0.4                                ...           6 years ago
  • 1.0.3                                ...           6 years ago
  • 1.0.2                                ...           6 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 3
This Week 9
This Month 10
Last Day 6
Last Week 1
Last Month 25
Dependencies (0)
None
Dev Dependencies (2)

Copyright 2013 - present © cnpmjs.org | Home |