Function cgl_rs::utils::random_float

source ·
pub fn random_float() -> f32
Expand description

Generates a random floating-point number between 0 and 1.

Returns

A f32 representing the generated random number.

Example

let random_number = cgl_rs::utils::random_float();