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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a12fbc2d12506116 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: help with random number Date: 2000/11/13 Message-ID: <8up1ve$v7t$1@nnrp1.deja.com>#1/1 X-Deja-AN: 693091611 References: <5ltu0to0o3mt8c9liev26229n9mnhi0rvu@4ax.com> X-Http-Proxy: 1.0 x64.deja.com:80 (Squid/1.1.22) for client 205.232.38.240 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon Nov 13 15:39:27 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-11-13T00:00:00+00:00 List-Id: In article <5ltu0to0o3mt8c9liev26229n9mnhi0rvu@4ax.com>, mountainman wrote: >. Like a card game I need it to pull an Ace of Spades only > once till the game is over. Any help would be very > appreciated. This is a very standard beginning programming assignment (shuffling a deck of cards). Don't look for a built in random number generator to do this, that's not the point of the excercise. Instead, think about how you could use perfect coin tosses to shuffle a deck, or think about how, when there are 37 cards left, you choose a random one of the cards left. Sent via Deja.com http://www.deja.com/ Before you buy.