Author: Bruce Moreland
Date: 21:50:19 04/12/99
Go up one level in this thread
On April 12, 1999 at 19:44:51, James Swafford wrote: > >My opening book relies on a random number generation to >choose among book entries. Windows random( ) function >leaves a lot to be desired, even when reseeded using the >system timer before each call. > >I'm interested in hearing what other programmers are doing >for _random_ number generation. Don't re-seed using the system timer before each call. The resolution on the system timer isn't that great, you can conceivably get the same seed several times in a row, which will get you the same random number back. Maybe this is your problem. I use rand(). bruce
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.