Fixed the random number generation to use floats.