pub fn rand_float() -> FLOAT
Returns a random number between zero and one.
let r = rand(); assert(r >= 0.0 && r <= 1.0);