https://github.com/leonardoval/randomness.js
Pseudo-random number generation functions and utilities.
https://github.com/leonardoval/randomness.js
javascript linear-congruential-generator mersenne-twister pseudo-random-generator random
Last synced: 4 months ago
JSON representation
Pseudo-random number generation functions and utilities.
- Host: GitHub
- URL: https://github.com/leonardoval/randomness.js
- Owner: LeonardoVal
- License: other
- Created: 2019-07-23T13:51:10.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-14T20:41:45.000Z (over 2 years ago)
- Last Synced: 2025-03-17T21:49:59.082Z (4 months ago)
- Topics: javascript, linear-congruential-generator, mersenne-twister, pseudo-random-generator, random
- Language: JavaScript
- Size: 1.82 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
@creatartis/randomness.js
=========================[](https://badge.fury.io/js/%40creatartis%2Frandomness)
Pseudo-random number generation functions and utilities for everything that
Javascript's own `Math.random()` falls short of covering, which is a lot.It includes:
+ The class `Randomness` with useful methods like `randomInt`, `choice`,
`shuffle`, etc.+ Pseudo-random number generators based on the simple
[_linear congruential_ algorithm](http://en.wikipedia.org/wiki/Linear_congruential_generator)
algorithm, and the more complex
[_Mersenne twister_ algorithm](http://en.wikipedia.org/wiki/Mersenne_twister#Pseudocode).
Both generators can be seeded properly.## License
Open source under an [MIT license](LICENSE.md) (see LICENSE.md).