Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: 64-Bit random numbers

Author: Robert Hyatt

Date: 07:59:50 10/29/03

Go up one level in this thread


On October 29, 2003 at 10:06:58, Dan Andersson wrote:

> Another bit of caution here. Instead of generating a binary digit it is better
>to generate three numbers discarding the zeroes and substituting the values for
>the other two with zero and one.
>
>MvH Dan Andersson


I was going to do the classic:  generate a number 0<=N<1.0 and
then bit=(ranno < .5) ? 0 : 1;

Burns a lot of random numbers to get a lot of random bits, of
course...



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.