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,30d4161ec85becee X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-26 16:29:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!upp1.onvoy!onvoy.com!news-out.visi.com!hermes.visi.com!cox.net!news-east.rr.com!chnws02.ne.ipsvc.net!cyclone.ne.ipsvc.net!24.128.8.70!typhoon.ne.ipsvc.net.POSTED!not-for-mail Message-ID: <3CF1701E.9020902@attbi.com> From: "Robert I. Eachus" Organization: Eachus Associates User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2 X-Accept-Language: en,pdf MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Building on Random_Float? References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 26 May 2002 23:24:52 GMT NNTP-Posting-Host: 24.61.239.24 X-Complaints-To: abuse@attbi.com X-Trace: typhoon.ne.ipsvc.net 1022455492 24.61.239.24 (Sun, 26 May 2002 19:24:52 EDT) NNTP-Posting-Date: Sun, 26 May 2002 19:24:52 EDT Xref: archiver1.google.com comp.lang.ada:24843 Date: 2002-05-26T23:24:52+00:00 List-Id: Mars Gralia wrote: > Ada Wizards and Gentle Folk, > > I would like a high-level Ada95 design that allows me to build a > layered series of random number generators which ultimately use > Ada.Numerics.Float_Random. Could you please provide me one? > > Details are given below. I guess I don't see your problem. Generators are and should be limited, because of the mischief that can come from making a copy of one. (The mechanism for states insures that you can save, copy, etc. generator states, but that random sequences from a generator have guaranteed properties between resets. But there is nothing to prevent you from creating a normal generator that is also limited with a uniform generator (or two) as components. I say or two because the best normal distribution generator I know uses two uniform variates. But remember if you do use two generators, to get full benefit, you need to initialize (reset) them using different sources of randomness. My current email address is rieachus@attbi.com.