Random double

Ivan Kazmenko gassa at mail.ru
Tue Apr 23 23:56:43 PDT 2013


On Wednesday, 24 April 2013 at 06:37:50 UTC, qznc wrote:
> It also raises the question what uniform means in the context 
> of floating point. Uniform over the numbers or uniform over
> the bit patterns?

I'd like to mention that there's no such mathematical object as 
"uniform distribution on [0..+infinity)".  On the other hand, a 
(discrete) uniform distribution of the bit pattern, or restricted 
bit pattern (that is, no special values), is of course valid.  A 
"random positive double" as a bit pattern most closely resembles 
exponential distribution I think.


More information about the Digitalmars-d-learn mailing list