Mail Archives: djgpp-workers/1998/10/01/14:45:51
On Thu, 1 Oct 1998, DJ Delorie wrote:
> > And second, one of the most valuable features of `random' is that all
> > its bits, inluding the LSB's, are random, so you could get a random
> > bit with "random() % 2". Does your algorithm have this feature?
>
> Actually, I think rand() has this property at the moment, because it
> uses a 64-bit seed and extracts the middle 32-bits for the return
> value.
It would be interesting to run some tests on it from Knuth's v.3. Any
takers?
- Raw text -