Mersenne Twister PRNG C# implementation

I’m trying Unity 3D and needed a random number generator that would run exactly the same on every platform. I don’t want to use Unity’s RNG because I can’t risk it to change in an update. Therefore, I implemented my own Mersenne Twister implementation in C#. This code is based on the Python implementation of the wikipedia page for Mersenne Twister.

The code is available on Github here.