Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/commanderfoo/lcg-rng
- Owner: CommanderFoo
- Created: 2017-02-09T01:20:07.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-01T22:52:00.000Z (almost 8 years ago)
- Last Synced: 2024-09-17T20:09:33.882Z (4 months ago)
- Topics: javascript, lcg, linear-congruential-generator, rng
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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