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,62266d96f70abe13 X-Google-Attributes: gid103376,public From: jsa@alexandria (Jon S Anthony) Subject: Re: How do you randomise integers? Date: 1997/05/20 Message-ID: #1/1 X-Deja-AN: 242644414 Distribution: world References: <01bc6221$5c8b3100$1a8602cb@whippet> Organization: PSI Public Usenet Link Newsgroups: comp.lang.ada Date: 1997-05-20T00:00:00+00:00 List-Id: In article <01bc6221$5c8b3100$1a8602cb@whippet> "the AJE" writes: > I have only just begun learning ADA, but I can't find a book with decent > examples on randomising numbers. I could try using C++, but I much prefer > ADA. The biggest problem is finding something to connect the randomizer to > the timer so that a different seed is used everytime the programme is run. > I would appreciate some examples using dice-rolls etc. because I can't > decipher syntaxes very well. Is there some reason why you don't want/can't use the random number generators that come with Ada (A.5.2). The generic discrete version seems like just what you want. There is also an example Dice_Game given as well. /Jon -- Jon Anthony Organon Motives, Inc. Belmont, MA 02178 617.484.3383 jsa@organon.com