From Standard in rand::distributions - Rust :
Floating point types (
f64): 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 ?
I think you can probably generally assume that documentation is not lying to you.
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.