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,5291fa0ea59b8b29,start X-Google-Attributes: gid103376,public From: njt@minster.york.ac.uk (Nigel J. Tracey) Subject: Random Number Generation Date: 1996/09/23 Message-ID: <5266q1$a0t@netty.york.ac.uk>#1/1 X-Deja-AN: 184790124 organization: Dept. Computer Science, University of York. newsgroups: comp.lang.ada Date: 1996-09-23T00:00:00+00:00 List-Id: Can anyone point me in the direction of a routines to do random number generation. The requirements are as follows. A routine which will generate a integer between a given minimum and maximum value. Up to Integer'First and Integer'Last A routine which will do the same for floats i.e. a random value from Float'First to Float'Last but between two given values. The values of the min and max value for the above routines are not known at compile time, hence why I don't thing I can use Ada.Numerics.Discrete_Random Any help would be very much appreciated (please also e-mail a copy of relies as the news feed is a little unreliable here) Thanks a lot, Nigel -------------------- Nigel J. Tracey MEng, Research Associate (High Integrity Systems Group). Department of Computer Science, Office: X/D016 University of York, Tel : [0|+44]1904 432769 York, England. E-Mail: njt@minster.york.ac.uk YO1 5DD. URL : http://sv1pc161.cs.york.ac.uk/~njt