replaced Java random for Sean Luke's MersenneTwister implementation