Using mersenne as a random number generator