Fixed issue where randomFloat() returned values greater than 1.0