Fixed a bug in the random generator for random float and doubles.