Computer Chess Club Archives


Search

Terms

Messages

Subject: Replicant_rnd 1.1!

Author: Tiago Ribeiro

Date: 13:58:26 06/19/01


Replicant_rnd 1.1!


There are a serious bug in my first version of Replicant_rnd. I use 'srand( time
( 0 ) )' in "main.c" to seed random numbers. This causes the computer to read
its clock to obtain the value for the seed automatically (returns the calendar
time in seconds) but I forgot the 'scope' completely. So the random numbers have
the same sequence every time that begins the engine. I correct this bug and I
think now is everything OK!

  http://www.fortunecity.com/campus/cottingham/359/index.html

Sorry!

Tiago Ribeiro



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.