Hacker News new | ask | show | jobs
by adrianN 1539 days ago
Choosing a random float is not the same as choosing a random number.
1 comments

What applications call for a "random float in [0,1]" with distribution defined in the space of fp representation and not the usual kind?
For example you when you want to do fuzzing of some algorithm that uses floats, a random float might come in handy.
In [0,1]?

(I consider this answer nearly disingenuous. It's obviously not what OP was talking about.)