Author: Ed Schröder

Date: 02:46:50 10/18/98

Since ages I use the following formula for creating a set of random integers for hashing at program start: #define LENGTH 64*12 int random [LENGTH]; int a,b,c,d,x; srand(9); // initialize prime number for (x=0; x<LENGTGH; x++) { a=rand(); b=rand(); if (b & 1) a=a | 0x8000; c=rand(); d=rand(); if (d & 1) c=c | 0x8000; random[x]=(a<<16)+c; } I wonder how good such a system is and how others do it. - Ed -

- Re: How to create a set of random integers for hashing?
**Don Dailey***18:59:10 10/22/98* - Re: How to create a set of random integers for hashing?
**Rémi Coulom***04:19:14 10/19/98*- Re: How to create a set of random integers for hashing?
**Don Dailey***18:46:17 10/22/98*

- Re: How to create a set of random integers for hashing?
- Re: How to create a set of random integers for hashing?
**Dann Corbit***22:22:10 10/18/98*- Re: How to create a set of random integers for hashing?
**Andreas Stabel***06:08:21 10/21/98*

- Re: How to create a set of random integers for hashing?
- Re: How to create a set of random integers for hashing?
**Peter McKenzie***13:29:36 10/18/98* - Re: How to create a set of random integers for hashing?
**Robert Hyatt***06:34:37 10/18/98*- Re: How to create a set of random integers for hashing?
**Ed Schröder***07:57:04 10/18/98*- Re: How to create a set of random integers for hashing?
**Robert Hyatt***10:45:19 10/18/98* - Re: How to create a set of random integers for hashing?
**Manfred Rosenboom***08:33:48 10/18/98*

- Re: How to create a set of random integers for hashing?

- Re: How to create a set of random integers for hashing?
- Re: How to create a set of random integers for hashing?
**Amir Ban***04:41:29 10/18/98*- Re: How to create a set of random integers for hashing?
**Ed Schröder***07:15:54 10/18/98*- Re: How to create a set of random integers for hashing?
**José de Jesús García Ruvalcaba***16:10:27 10/19/98* - Re: How to create a set of random integers for hashing?
**Amir Ban***07:36:58 10/18/98*

- Re: How to create a set of random integers for hashing?
- Re: How to create a set of random integers for hashing?
**Robert Hyatt***06:36:52 10/18/98*- Re: How to create a set of random integers for hashing?
**Amir Ban***06:55:59 10/18/98*- Re: How to create a set of random integers for hashing?
**Robert Hyatt***10:49:48 10/18/98* - Re: How to create a set of random integers for hashing?
**Ed Schröder***07:55:45 10/18/98*- Re: How to create a set of random integers for hashing?
**Roland Pfister***23:41:35 10/18/98*

- Re: How to create a set of random integers for hashing?

- Re: How to create a set of random integers for hashing?

- Re: How to create a set of random integers for hashing?

- Re: How to create a set of random integers for hashing?

This page took 0.04 seconds to execute

Last modified: Thu, 07 Jul 11 08:48:38 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.