fixed bad bug in Mersenne Twister