From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,47a3564e17a59a63 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-08 12:58:11 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Pseudo Random coding problem Date: 08 Jan 2003 15:56:14 -0500 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3e1b633f.3280604@news.demon.co.uk> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1042060128 29255 128.183.235.92 (8 Jan 2003 21:08:48 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 8 Jan 2003 21:08:48 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:32773 Date: 2003-01-08T21:08:48+00:00 List-Id: 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