pub fn random_float_range(min: f32, max: f32) -> f32
Expand description

Generates a random floating-point number within the given range.

Arguments

  • min - A f32 representing the minimum value of the range.
  • max - A f32 representing the maximum value of the range.

Returns

A f32 representing the generated random number within the given range.

Example

let random_number = cgl_rs::utils::random_float_range(0.0, 1.0);