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,fa81b07d7c3d2d7d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-31 19:07:36 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!pc01.webusenet.com!fe07.atl2.webusenet.com.POSTED!not-for-mail From: "David C. Hoos" Newsgroups: comp.lang.ada References: Subject: Re: Random numbers in tasks MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: X-Complaints-To: abuse@usenetserver.com X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly. NNTP-Posting-Date: Sat, 31 May 2003 21:58:55 EDT Date: Sat, 31 May 2003 21:09:30 -0500 Xref: archiver1.google.com comp.lang.ada:38260 Date: 2003-05-31T21:09:30-05:00 List-Id: "Papastefanos Serafeim" wrote in message news:bbb8o5$2711$1@ulysses.noc.ntua.gr... > I am trying to model a simulation in Ada95 with gnat. > There are some tasks of the same type that use > random numbers. Is there a way to make every > task get its own sequence of random numbers ? > Yes. The task body should declare the generator object. Each instance of the task type, therefore will have its own generator object. > -- > Papastefanos Serafeim > serafeim@otenet.gr > > > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ada > >