pub fn random_float_in_range(range: Range<f64>) -> f64
Generates a random float uniformly distributed in the given range.