I wanted to leave the function parameter as scala.util.Random so as to allow others to use their own custom Random number generators (maybe Doubles within a certain range etc.). I have however taken your suggestion into using the XORShiftRandom as the default random number generator.