0.0.3 • Published 7 years ago
prand v0.0.3
PRAND random generators with device entropy sources, 'nix only
Prerequisites
python,numpy,cython
Install
npm i prandranduses/dev/randomas entropy, returnsnrandom numbers in[0, 1)range
const rand = require('prand').rand;
let n = 5;
rand(n)
.then(r => {
console.log(r);
})
.catch(e => { console.error(e); });urand(pseudo-random) uses/dev/urandomas entropy, returnsnpseudo-random numbers in[0, 1)range
const urand = require('prand').urand;
let n = 8;
urand(n)
.then(r => {
console.log(r);
})
.catch(e => { console.error(e); });mwc(multiply-with-carry) andmersenne-twisterare deprecated