From: David Muhammad <guru@activist.com>
Subject: Random Number problems
Date: 1997/09/30
Date: 1997-09-30T00:00:00+00:00 [thread overview]
Message-ID: <3431B598.41C6@activist.com> (raw)
In-Reply-To: 60q1hm$8oq$1@goanna.cs.rmit.edu.au
>I am trying to write a function that will
use a Random Number Generator and then return a random value between
1 and 52. I have written the Random Number Generator function but how
do I tell the compiler to select a number between 1 and 52.
a) declare a subtype
subtype pseudorand is range 1..52
b) Call my randomnumber from function Rand_Num
c) NOw somehow convert some "Number" to a range between 1 and 52.
I am stuck ??
next prev parent reply other threads:[~1997-09-30 0:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-09-30 0:00 Stream_Access value valid across Close/Open? Dale Stanbrough
1997-09-30 0:00 ` David Muhammad [this message]
1997-10-01 0:00 ` Random Number problems Martin C. Carlisle
1997-10-01 0:00 ` Geert Bosch
-- strict thread matches above, loose matches on Subject: below --
1997-10-01 0:00 John Herro
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox