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-06 08:45:31 PST Date: Sun, 06 Apr 2003 17:44:57 +0200 From: =?ISO-8859-1?Q?Rodrigo_Garc=EDa?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020513 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada2005 random References: <3E8D0B2F.55A043DE@eurocopter.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: lglpc31.epfl.ch Message-ID: <3e904b98@epflnews.epfl.ch> X-Trace: epflnews.epfl.ch 1049643928 128.178.76.8 (6 Apr 2003 17:45:28 +0200) Organization: EPFL Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.mailgate.org!news-zh.switch.ch!epflnews.epfl.ch!not-for-mail Xref: archiver1.google.com comp.lang.ada:35958 Date: 2003-04-06T17:44:57+02:00 List-Id: Christoph Grein wrote: > See RM A.5.2(51) for a generator returning values in 0 .. M-1 for > variable M. Without any kind of doubt, that's the rightest solution! Rodrigo PS: In fact, it reminds me when I learned how to get random numbers in BASIC, where the only random function returns float values between 0 and 1.