Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: 64-bit random number in .NET

Author: Dieter Buerssner

Date: 10:26:04 11/01/03

Go up one level in this thread


On November 01, 2003 at 12:40:12, Edward Seid wrote:

>Also, in relation to another recent thread here on 64-bit random numbers, why do
>people bother coding their own RNGs instead of using the RNG functions of
>whatever compiler their using?  Does it really make that much difference?

The most important difference IMHO is, that you will get reproducable node
counts independent of platform and/or compiler used. If you "only" want to use
Visual Basic, this might not be a problem. At least not, when in a new version
the random number generator will never be changed.

I use the hash-keys also for accessing the book. The Linux-version of my engine
would need a different book, if I would use compiler specific rand(). With a
self coded RNG, this is not a problem (although, I have to admit, that I would
need a new book on a big endian architecture. I was too lazy to fix this).

Regards,
Dieter



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.