That’s roughly equivalent, as I understand it, as it returns 2^{53} evenly spaced unique values between 0 and 1. The thing that makes the approach in Output distribution of rand() (thread 1) and the linked blog post clever is that it returns 2^{53} evenly spaced unique values in [0.5, 1), 2^{53} twice-as-closely-spaced unique values in [0.25, 0.5) (with half the probability), and so on…
mbauman
7
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Are rand(Float32) really uniform in [0,1)? | 29 | 1349 | November 5, 2025 | |
| Output distribution of rand() | 7 | 2323 | October 19, 2023 | |
| Is it really possible for rand to throw a zero? | 61 | 4930 | September 18, 2019 | |
| Frédéric Goualard found an inexactness in our rand() | 19 | 1194 | September 8, 2022 | |
| How to create a random Uniform Distribution between (but excluding) 0 and 10? | 20 | 27968 | March 17, 2019 |