Skip to content

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

Notifications You must be signed in to change notification settings

michaelrhodes/math-random

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks