easy-numbers
v0.1.0
Published
Pseudorandom number generator
Downloads
5
Maintainers
Readme
This library uses Date.now, Math.Pi, Math.sin, Math.E, Math.pow and Math.abs to generate random numbers. It uses the unix timestamp to generate the mean and standard deviation for Gaussian Distrubution. It takes around 241 Milliseconds to generate one number | (0.241 seconds). The generation of the number looses precision when numbers are at 1x10^-16 of a difference.
const easyNumbers = require("easy-numbers");
console.log(easyNumbers.RandNumb(min, max)); //min and max are the minimum and the maximum numbers
console.log(easyNumbers.RandNumb(0, 10)) //Real Outcome: 5.183237691945196