Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: question about optimizing code - puh Heiner is fast!

Author: Reinhard Scharnagl

Date: 11:37:56 07/08/03

Go up one level in this thread


Hi, sorry ... I have been too fast ...

>XORing three random numbers should produce a byte stream
>with an average of two bits set (instead of 1.27405)
>within a byte.

using XORing has to be corrected into using ANDing,
and taking only TWO random numbers instead of THREE.

Reinhard



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.