comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <Stephen.A.Leake@nasa.gov>
Subject: Re: Pseudo Random coding problem
Date: 08 Jan 2003 15:56:14 -0500
Date: 2003-01-08T21:08:48+00:00	[thread overview]
Message-ID: <uwulfl5sh.fsf@nasa.gov> (raw)
In-Reply-To: 3e1b633f.3280604@news.demon.co.uk

brianc@billybob.demon.co.uk (Brian A Crawford) writes:

> I am trying to start a small programming project that will output
> pseudo-random numbers.

>       Random_50.Reset (Gen => G);  -- starts G from time of day clock

This makes your tests non-repeatable, which is why you sometimes see
20 and sometimes don't. You probably want to do 

Random_50.Resest (Gen => G, Initiator => 0);

to get repeatable results.

In your final application, you may want to start from the time of day,
but probably not.

-- 
-- Stephe



  parent reply	other threads:[~2003-01-08 20:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-07 23:47 Pseudo Random coding problem Brian A Crawford
2003-01-08  1:55 ` tmoran
2003-01-08 10:57   ` Brian A Crawford
2003-01-08 13:45     ` David C. Hoos
2003-01-08  4:08 ` Andy Starritt
2003-01-08 20:56 ` Stephen Leake [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-01-08 13:45 David C. Hoos
replies disabled

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