From: jsa@alexandria (Jon S Anthony)
Subject: Re: How do you randomise integers?
Date: 1997/05/20
Date: 1997-05-20T00:00:00+00:00 [thread overview]
Message-ID: <JSA.97May20134358@alexandria> (raw)
In-Reply-To: 01bc6221$5c8b3100$1a8602cb@whippet
In article <01bc6221$5c8b3100$1a8602cb@whippet> "the AJE" <whippet@light.iinet.net.au> 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
next prev parent reply other threads:[~1997-05-20 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-05-16 0:00 How do you randomise integers? the AJE
1997-05-19 0:00 ` Michael F Brenner
1997-05-20 0:00 ` Jon S Anthony [this message]
1997-05-20 0:00 ` Nick Roberts
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox