Fix bug in Mersenne twister

That was embarrassing.