easy-numbers

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i easy-numbers

Weekly Downloads

0

Version

0.1.0

License

ISC

Unpacked Size

1.88 kB

Total Files

3

Last publish

Collaborators

  • isuckathtml420