I know how to make ActionScript choose a random number between 1 and ?.
But how exactly can ActionScript choose a sequence of numbers between, say 1 and 20, in random order, but so they are not repeated.
At the moment, I have some code which instructs the frame to pick a random number between 1 and 20. I then have a long, lengthy and probably needless script that goes over each number, if it has already been previously picked then it is ignored.
As this script is in a frame, this is a lengthy process. When there is only one number left to pick, it can take a long time before the computer finally picks this one.
Can anyone help?
But how exactly can ActionScript choose a sequence of numbers between, say 1 and 20, in random order, but so they are not repeated.
At the moment, I have some code which instructs the frame to pick a random number between 1 and 20. I then have a long, lengthy and probably needless script that goes over each number, if it has already been previously picked then it is ignored.
As this script is in a frame, this is a lengthy process. When there is only one number left to pick, it can take a long time before the computer finally picks this one.
Can anyone help?