Author: Mike Byrne
Date: 09:10:17 04/17/04
Go up one level in this thread
On April 16, 2004 at 07:56:05, Richard Heldmann wrote: >Is the code for Crafty XX.XX SE available? I'm getting ready to release the executable and code for Crafty 19.12 SE. As I mentioned previously, I added a random generator that can be accessed through the consolde window. As a test last night , Crafty generated 16,000,000,000 random numbers of a simulated 8 sided dice roll (0-7) - here are the results: zero's = 1999988828 one's = 2000069896 two's = 2000000022 three's = 2000022913 four's = 1999993537 five's = 1999990787 six's = 2000007371 seven's = 1999926646 maximum consecutive in a row = 11 Total Random Numbers Generated (RNG) = 16000000000 Raw RNG per second: 5306606 here's a similuated coin flip - for 10,000,000,000 flips Raw RNG per second: 6790019 zero's = 4999969674 one's = 5000030326 two's = 0 three's = 0 four's = 0 five's = 0 six's = 0 seven and higher = 0 maximum consecutive in a row = 31 Total Random Numbers Generated (RNG) = 10000000000 Raw RNG per second: 6790019 here's 1,000,000,000 random numbers generated from 0 to 999. zero's = 999936 one's = 1000283 two's = 998737 three's = 1000809 four's = 1002123 five's = 999713 six's = 1000214 seven and higher = 992998185 maximum consecutive in a row = 3 Total Random Numbers Generated (RNG) = 1000000000 Raw RNG per second: 6669779 It also handles a range of random numbers to be generated startingf rom other than 0: rand <low> <<high> <number of random numbers> rand 20 41 100 37 24 38 37 31 32 24 27 39 20 28 32 24 41 32 35 21 20 27 32 27 30 29 28 23 33 40 23 23 30 30 34 29 31 32 40 20 30 35 38 20 23 34 23 30 38 41 40 23 21 34 22 25 21 21 26 36 32 38 34 28 29 32 23 28 27 24 40 21 34 40 21 21 39 38 29 30 20 40 30 34 39 24 36 24 26 24 22 26 36 21 32 36 22 31 28 35 40 27 35 This is the functionality I was going after - Crafty SE personalities are all numbered - from weakest to highest so you take a range of personalities you wish to play against during the game - from the strongest to the weakest or anywhere in between - obtaining in essense a composite personality that most likely will play differently every game. I can also easily add a parameter for Crafty to play weaker personality if it's winning and stronger if it's losing and for it to choose a personality at random froma pre-defined range And you will also have state of the art RNG at yout fingertips from Crafty's console window which can be used for computer simulations like Monte Carlo etc . It can handle a low-high range of 1 to 2^31-1 (2147483647) and the counters are 64 bits , which should prevent most overflows ;>) - on my machine it will take 50,000+ years to hit the overflow in the counters.
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.