Mail Archives: djgpp-workers/2000/06/09/11:12:21
Teun Burgers wrote:
> [...] Several generators with good
> sequences are known. I think they are essentially based
> on combining several simple linear congruential generators
> to get a longer sequence.
Some, yes. But not the two you pointed out.
> Perhaps Dieter can test this one also.
> Perhaps Dieter can test this one also.
From the attachment:
/* This is an implementation of the TGFSR (twisted generalized
* feedback shift register) random number generator TT800, which was
[...]
If this comment is correct, it will pass all my tests. (I used my own
implementation of tt800)
Also, Mersenne Twister (by the same researcher), that you pointed out
in your other mail, will pass all my tests.
They both need about 3 times as long as the MWC32 I suggested for
DJGPP. (In some situations, probably more, because especially
Mersenne Twister needs a large table for internal state. When not
using it in a tight timing loop, this table may not be in the cache
anymore)
IHMO, anybody who needs such a strong PRNG, will not depend on
rand().
- Raw text -