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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: =?utf-8?Q?=C2=B3A_Comparison_of_Four_Pseudo?= =?utf-8?Q?_Random_Number_Generators_Impleme?= =?utf-8?Q?nted_in_Ada=C2=B2?= Date: Sat, 20 Jul 2013 02:41:16 +0200 Organization: Ada @ Home Message-ID: References: NNTP-Posting-Host: cJily9RRGDkFRIATpG/lqA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.16 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:16441 Date: 2013-07-20T02:41:16+02:00 List-Id: Le Sat, 20 Jul 2013 02:18:38 +0200, Jeffrey Carter = a =C3=A9crit: > On 07/19/2013 03:07 PM, Bill Findlay wrote: >> >> Why not use Ada.Numerics.{Discrete,Float}_Random ? > > Those are excellent when you don't care what sequence of values you ge= t = > from the generator with different compilers or different platforms, bu= t = > in those cases where you need to portably obtain the same sequence for= = > the same seed value(s), you need to use something else. Also and more basically, it's often suggested to not rely on a single = generator and use at least two ones, different enough, for comparison of= = results, as most papers about Monte Carlo methods introduces this. That'= s = after all just like with hash functions. You may also favour algorithms (either in mathematical or comprehensible= = source form) over libraries when, as you say, you want to be able to = reproduce an exact same sequence without a record of it (may weight too = = much, easily some hundreds of MB), or else want the same in different = contexts, say Ada and SML without external binding. And above all, this paper mentions Ada and put it at the front, so that'= s = a lot worthy anyway :-D -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity