Change random generator to the Mersenne twister