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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,219de4148f968c92 X-Google-Attributes: gid103376,public From: brashear@ns1.sw-eng.falls-church.va.us (Philip Brashear) Subject: Re: Strange results with random numbers with Gnat 3.10 Date: 1998/01/08 Message-ID: <692ia8$4kq@ns1.sw-eng.falls-church.va.us>#1/1 X-Deja-AN: 313937370 References: <34B3F618.DC9@uppsala.mail.telia.com> Organization: None Newsgroups: comp.lang.ada Date: 1998-01-08T00:00:00+00:00 List-Id: In article <34B3F618.DC9@uppsala.mail.telia.com>, Andreas Almroth wrote: [... trying to adapt dice example in RM A5.2 ...] >To my big suprise this was the result; > >Number Frequency >================= > 1 249594 > 2 167104 > 3 166985 > 4 166687 > 5 166621 > 6 83009 Are you sure you used the example in the RM? It's a two-dice example, so the possible values are 2 .. 12, not 1 .. 6. If you modified the example to produce single-die results, are you sure you got the code right? (Honestly, though it seems easy, it's not trivial.) Could you post your source? (I wrote a two-dice version for the Ada Compiler Evaluation System, and, as I recall, the earlier versions of GNAT produced acceptable results.) Phil Brashear EDS