GitHub - jawj/mtwist: Concise, tested Mersenne Twister in CoffeeScript/JavaScript
mtwist
This is a concise implementation of the Mersenne Twister Pseudo-Random Number Generator (PRNG) for JavaScript.
The library:
Includes initialization improvements to the algorithm that were made in 2022
Is tested against the original C implementation
Includes TypeScript types
The Mersenne Twister is not a cutting-edge PRNG. It is not cryptographically secure. But it is very widely used, being the default PRNG for Excel, R, Python, Ruby and others.
Why would I use this?
The key use case is f...
Read more at github.com