Implemented Mersenne-Twister RNG.