fix Random.rand(1.0) behavior