Boost logo

Boost Users :

Subject: [Boost-users] [Random] uniform_01
From: Robert Patterson (riap2_at_[hidden])
Date: 2009-07-09 08:59:36


Hi,

I was looking at the docs for the uniform_01 distribution:

http://www.boost.org/doc/libs/1_39_0/libs/random/random-distributions.html#uniform_01

I read the following note
"Note: The current implementation is buggy, because it may not fill all
of the mantissa with random bits."

I do not understand the problem. I looked at the code, which does what
I expect. Why is it a problem if some of the mantissa bits are not
'random'? As I understand the requirement is the real numbers are
uniformly distributed; the bit patterns should not matter provided they
represent numbers with the right mathematical properties.

Thanks

Robert Patterson

http://como.cheng.cam.ac.uk/index.php?Page=People&Section=riap2


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net