Replace Mersenne with Math.random() which is 30 times faster