From Standard in rand::distributions - Rust :
Floating point types (
f32
andf64
): Uniformly distributed in the half-open range[0, 1)
. See notes below.
Can I blindly use the generated value as it's strictly in the [0, 1)
range ?
Are there cases where the value can be negative, 1.0
or bigger ?