RandomLua
math.random give different numbers on different platforms. Since I don't intend to compile C code for every platform, I decided to create a Pure Lua Random Generator (probably another one...).
3 algorithms:
- Mersenne twister [1], very good and slow
- Multiply-with-carry [2], probably the best option
- Linear congruential generator [3], fast and, well, it works... kind of.
MWC and LCG come with 3 pre-defined parameters.
Download: Original Thread