On Tue, Feb 04, 2003 at 03:52:37 -0800, David Schultz wrote:
> 
> You can do better than the present generator with 32 bits of state.
> See the following page by Neal Wagner (not to be confused with David Wagner):
>       http://www.cs.utsa.edu/~wagner/laws/rng.html
> The section on LCGs suggests that the multiplier FreeBSD uses (7^5)
> is not particularly good, and points out some better values suggested
> by Knuth.  I can't find the original discussion in TAOCP vol. 2, but

Thank for your pointer, I'll look at later.

> Well, if 0 doesn't work, and 10 doesn't work, and 100 doesn't
> work, then I'm not too hopeful about 2000.  I appeal to Asimov's
> zero, one, infinity law.

I found that f.e. 50 is worse than 100, but 200 isn't better. 100 is 
better than 0 because remove monotonically increased sequence.

-- 
Andrey A. Chernov
http://ache.pp.ru/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to