Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: Shuffling the contents of an array
From: Paul Steven
Date: Sat, 23 Sep 2000 19:54:38 +0100

Hi there

I have an array that has three items in it

e.g Array_Of_Directions=["Right","Down","Up"]

I want to randomly change the positions of each element so that everytime I
loop through using the elements in the array I don't get the same one first
every time.

So sometimes it would be ["Down","Up","Right"]

and sometimes ["Up,"Right","Down"]

etc

Any ideas of a simple way to do this?

Thanks

Paul


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]