Skip to main content

rand_float

Function rand_float 

Source
fn rand_float() -> f64
Expand description

Generates a random float between 0.0 and 1.0.

Uses a simple xorshift-based PRNG seeded from the current time. Not cryptographically secure, but sufficient for probabilistic cleanup.