I spent a lot of time writing a number library in Lua just so I could write a hash library in Lua. Since I have this nice little number library I decided I should do more things with it. With that said, I’d like to introduce lua-randxoxoxo!
lua-randxoxoxo is a pseudo random number generator. It’s pure Lua and allows you to have different random number generators with different seeds. Internally I’m using David Blackman and Sebastiano Vigna xoroshiro128+ algorithm. However, the public API abstracts this so the underlying algorithm so it can be changed in the future.
I’m very pleased that I’ve been able to implement a lot of fairly low level algorithms in PURE Lua. Performance isn’t very impressive but that’s what C is for.