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-05 10:34:56 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!deine.net!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Samuel Tardieu Newsgroups: comp.lang.ada Subject: Re: Ada2005 random Date: Sat, 05 Apr 2003 20:34:54 +0200 Organization: TELECOM Paris Message-ID: <87llyo6be9.fsf@inf.enst.fr> References: NNTP-Posting-Host: m34.net81-65-250.noos.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: melchior.cuivre.fr.eu.org 1049567695 96701 81.65.250.34 (5 Apr 2003 18:34:55 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Sat, 5 Apr 2003 18:34:55 +0000 (UTC) Mail-Copies-To: sam@rfc1149.net User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.4 (Military Intelligence, i386--freebsd) Cancel-Lock: sha1:/XTDo49caYfpyCoXxsnaJ3OAFdc= Xref: archiver1.google.com comp.lang.ada:35953 Date: 2003-04-05T20:34:54+02:00 List-Id: >>>>> "Dale" == Dale Stanbrough writes: Dale> If the random numbers are uniformly distributed, why wouldn't a Dale> window on that distribution also be uniformly distributed? "mod" does not create a window. Dale> Could you give an example? Suppose that random numbers are uniformly distributed over the set {0,1,2}. Apply "mod 2" to that, you get {0,1,0}. The probability of getting a 0 is twice the one of getting a 1. Sam -- Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/sam