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,c7fc42d2c6a0eedc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-04-04 06:26:50 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.stueberl.de!newsfeed.vmunix.org!news-FFM2.ecrc.net!news.iks-jena.de!not-for-mail From: Lutz Donnerhacke Newsgroups: comp.lang.ada Subject: Re: Ada2005 random Date: Fri, 4 Apr 2003 14:26:44 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: <3e8d421a$1@epflnews.epfl.ch> NNTP-Posting-Host: taranis.iks-jena.de X-Trace: branwen.iks-jena.de 1049466404 18701 217.17.192.37 (4 Apr 2003 14:26:44 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Fri, 4 Apr 2003 14:26:44 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:35928 Date: 2003-04-04T14:26:44+00:00 List-Id: * Peter Hermann wrote: > Rodrigo Garc?a wrote: >> Pick a random number from Integer and do a "mod" operation. > well: you won the first round :-) No. > instantiation of discrete_random with an actual generic parameter > having a huge range of values, such as integer or natural or positive > and then mod,abs should sufficiently satisfy my statistic conscience. Using "mod" destroys the uniformness of your random data an therefore will not meet most of the assumed randomness preconditions.