Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Random Twice |
From: | John Croteau |
Date: | Tue, 2 Nov 1999 19:26:42 GMT |
Hi Peter,
Hi Peter,
> 10 names plus photo's of players: in 10 mc's, named P0 to P9
> Numbers 1 to 10
> I have to draw:
> - a Random Player's name
> - a Random number
> This is repeated 10 times (in fact 9 times for the last draw ther's only one
> candidate.
> So each time a name is picked it is to be deleted before the next draw..
> How do I go about doing this?
You need to keep two lists of used numbers. One list for the names
and one for the Numbers. Then you generate a random numbers aand check
them against the appropriate List. If the item is on the List you
generate a number until you hit one not on the list.
--
Coming Soon Flash 4 Web Animation F/X and Design
http://www.amazon.com/exec/obidos/ASIN/1576105555/flashcentral
----------- -----------------------
John Croteau croteauerols [dot] com (mailto:croteauerols [dot] com)
------------- -------------------------
FlashTek (Advanced Websites with Flash) http://www.FlashTek.com/
Flash Bible (Fast track to good Flash) http://www.FlashBible.com/
Flash Central(The Universe Starts Here) http://www.FlashCentral.com/
The Flash Tech Resource (Tech Notes) http://www.FlashCentral.com/tech/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California
Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
FLASH: Random Twice, Peter Brouwers
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]