0.1.0 • Published 1 year ago

easy-numbers v0.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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
0.1.0

1 year ago

0.0.9

1 year ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.8

1 year ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.1

2 years ago