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=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6e2278eaed9619d6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-18 12:23:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!cyclone.swbell.net!bos-service1.ext.raytheon.com!bos-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3D0F8880.2668FB86@despammed.com> From: Wes Groleau Reply-To: wesgroleau@despammed.com X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en,es-MX,es,pt,fr-CA,fr MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Discrete random with given distribution ? References: <3D0E0B2B.67155BF9@despammed.com> <0JpP8.675$IT1.47623463@newssvr13.news.prodigy.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 18 Jun 2002 14:22:40 -0500 NNTP-Posting-Host: 151.168.144.162 X-Complaints-To: news@ext.ray.com X-Trace: bos-service2.ext.raytheon.com 1024428182 151.168.144.162 (Tue, 18 Jun 2002 15:23:02 EDT) NNTP-Posting-Date: Tue, 18 Jun 2002 15:23:02 EDT Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:26287 Date: 2002-06-18T14:22:40-05:00 List-Id: > While a programmer would, of course, recognize the problem when he wrote > "1.0/1024.0" and knew he was dealing with 3 digit accuracy, the problem > could easily creep in if the Probability array was calculated at run time. OK, well, perhaps a little extra code would solve it. I did originally say it was clumsy. I was surprised at how simple it _seemed_ to be when I actually wrote it out. -- Wes Groleau http://freepages.rootsweb.com/~wgroleau