Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Arrays to control random MCs |
From: | Laura Mollett |
Date: | Wed, 1 Mar 2000 03:25:46 GMT |
>> Set Variable: numMCs = 5
>> Set Variable: numShuffles = 10
>> Set Variable: count=1
>> Loop While (count <= numShuffles)
>> Set Variable: shuffle1 = (random(numMCs)+1)
>> Set Variable: shuffle2= (random(numMCs)+1)
>> Set Variable: temp = eval("mc"&shuffle1)
>> Set Variable: "mc"&shuffle1 = eval("mc"&shuffle2)
>> Set Variable: "mc"&shuffle2 = temp
>> Set Variable: count = count+1
>> End Loop
Oh nevermind, I think I see... it just takes 2 and swaps their positions.
You can't get two the same because don't have two alike. It's not as random
a way to choose, but that wouldn't matter for something like this. There's
10, because if you swap 5 cards 2atatime for 10 times, they'd be pretty well
shuffled.
Thanks, sorry,
Laura
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California
-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]