Added better random number generator (Mersenne twister).