How to generate floats which are uniform w.r.t. the continuous number line? (i.e., a number between 1 and 2 is equally likely as a number between 100000 and 100001).
I only know how to generate random floats uniform w.r.t. the distinct bit patterns (i.e., each bit pattern is equally likely).
The algorithm should be uniform along a given range of the representable numbers (i.e., 4.0 to 6.0 or (as an extreme) float.min_value to float.max_value).