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,ab934fcf5fc56328 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-14 20:06:12 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.direct.ca!look.ca!newsfeed1.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3B297B8A.3FB47517@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada 83 Random Generator - or ?? References: <3B28EF6D.BE151572@ftw.rsc.raytheon.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 15 Jun 2001 03:06:12 GMT NNTP-Posting-Host: 209.86.204.122 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 992574372 209.86.204.122 (Thu, 14 Jun 2001 20:06:12 PDT) NNTP-Posting-Date: Thu, 14 Jun 2001 20:06:12 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net X-Received-Date: Thu, 14 Jun 2001 20:04:08 PDT (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.lang.ada:8762 Date: 2001-06-15T03:06:12+00:00 List-Id: Wes Groleau wrote: > > Is there out there a "free" package vaguely similar to > Ada.Numerics.Discrete_Random, which is portable to all > Ada 83 AND 95 compilers ? The PragmAda reusable components includes an implementation of Marsaglia's "universal" random number generator, and I may have a copy of the 83 version around somewhere. In any case, there are not too many 95-isms in the 95 version, so you could clean it up yourself pretty easily. It includes a function that returns a uniformly distributed integer in a given range, which is "vaguely similar to Ada.Numerics.Discrete_Random". It should also be completely portable once converted completely to Ada 83. -- Jeff Carter "We burst our pimples at you." Monty Python & the Holy Grail