comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Iredell Eachus <rieachus@earthlink.net>
Subject: Re: Gnat Chat, Random Numbers in GNAT
Date: 2000/02/06
Date: 2000-02-06T00:00:00+00:00	[thread overview]
Message-ID: <389D1F5C.568C088B@earthlink.net> (raw)
In-Reply-To: rJ4n4.1038$dw3.56160@news.wenet.net

Kent Paul Dolan wrote:

> One can only hope that will be fixed _real soon now_; that's a pretty terrible
> misfeature.

    Not really, the limit is actually to Standard.Integer seeds, so it will
automagically grow to 64 bits in a few years.   But notice that the generator can
contain much more state, this is just a limit on the number of starting points.
The caution here was that you could easily exceed 2**32 entities in your GA run.
Once you do, you may see no new behavior.  By limiting the number of generators to
one per thread, you go up to ~2**49 starting states for entities.

    And incidently, the generator does go to some work so that sequential starting
values will produce uncorrelated sequences, even right at the start.  This allows
you to write Reset(Generator(N), Seed+N); or some such.





  reply	other threads:[~2000-02-06  0:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-24  0:00 Gnat Chat, Random Numbers in GNAT Kent Paul Dolan
2000-01-24  0:00 ` Ehud Lamm
2000-01-24  0:00 ` Keith Thompson
2000-01-24  0:00 ` Gisle S�lensminde
2000-01-24  0:00   ` Jeff Carter
2000-01-26  0:00     ` Kent Paul Dolan
2000-01-26  0:00       ` Jean-Pierre Rosen
2000-01-24  0:00 ` Ted Dennison
2000-01-25  0:00 ` Nick Roberts
2000-02-05  0:00 ` Robert Dewar
2000-02-06  0:00 ` Ashley Deas Eachus
2000-02-05  0:00   ` Keith Thompson
2000-02-06  0:00     ` Robert Iredell Eachus
2000-02-07  0:00       ` Kent Paul Dolan
2000-02-09  0:00         ` Robert Iredell Eachus
2000-02-06  0:00   ` Kent Paul Dolan
2000-02-06  0:00     ` Robert Iredell Eachus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-01-26  0:00 Christoph Grein
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox