need help with unique numbers
Hi,
I am a newbie to actionscript (programming in general) and I am trying to accomplish the following but don't know how to do it.
I have an array which starts out with 3 unique numbers between 1 and 30.
For example :
myArray = new Array();
myArray[0] = 13;
myArray[1] = 22;
myArray[2] = 29;
OK, a bit further down on my movie timeline, I will need to add 3 additional unique numbers to this array which are also between 1 and 30, but cannot be duplicates of the first three. In other words, when all is said and done, the total 6 numbers have to be unique numbers between 1 and 30.
Any suggestions?
Thanks you!
RK
|