Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/commanderfoo/lcg-rng

Seeded random number
https://github.com/commanderfoo/lcg-rng

javascript lcg linear-congruential-generator rng

Last synced: about 1 month ago
JSON representation

Seeded random number

Awesome Lists containing this project

README

        

https://en.wikipedia.org/wiki/Linear_congruential_generator

Needed a very basic way to seed a random number.

let rng = new RNG(100);

rng.next(); // 0.38643872755879477