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 13:52:13 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!lnsnews.lns.cornell.edu!news.cse.sc.edu!ken-transit.news.telstra.net!news.telstra.net!news-server.bigpond.net.au!not-for-mail From: Dale Stanbrough Newsgroups: comp.lang.ada Subject: Re: Ada2005 random References: User-Agent: MT-NewsWatcher/3.3b1 (PPC Mac OS X) Message-ID: Date: Fri, 04 Apr 2003 21:51:42 GMT NNTP-Posting-Host: 144.132.47.50 X-Complaints-To: abuse@bigpond.net.au X-Trace: news-server.bigpond.net.au 1049493102 144.132.47.50 (Sat, 05 Apr 2003 07:51:42 EST) NNTP-Posting-Date: Sat, 05 Apr 2003 07:51:42 EST Organization: BigPond Internet Services (http://www.bigpond.net.au) Xref: archiver1.google.com comp.lang.ada:35937 Date: 2003-04-04T21:51:42+00:00 List-Id: In article , Lutz Donnerhacke wrote: > * Dale Stanbrough wrote: > > How about > > for i in reverse 8..2 loop > > put (random (blah) mod i); > > end loop; > > ? > > This is not uniformly distributed. Don't use that! If the random numbers are uniformly distributed, why wouldn't a window on that distribution also be uniformly distributed? Could you give an example? Dale