Ok, ive been stuck on this all day...ive done it in both gui and jass... I need to do the following: I have an array of integers from 0-7, 0 being player red and 7 being player pink. I need to find a way to make it so that the array randomly gives each integer a value of someone else's player number. None of the integers can be the same, nor can they be the same number as the integers position in the array...
To make it easier to understand...lets say players red(0), teal(2), and purple(3) are all in the game. The game needs to assign the integer in position 0 to have the value of 2 or 3 (lets say 2). The integer in position 2 would then be assigned a 3. The integer in position 3 must then be assigned to 0. Notice that even though blue is not present, it does not assign him a value. The numbers must be randomly assigned as well to make it rotate each round.
+Rep for solving this, thanks and GL! Ask if you need clarification.
To make it easier to understand...lets say players red(0), teal(2), and purple(3) are all in the game. The game needs to assign the integer in position 0 to have the value of 2 or 3 (lets say 2). The integer in position 2 would then be assigned a 3. The integer in position 3 must then be assigned to 0. Notice that even though blue is not present, it does not assign him a value. The numbers must be randomly assigned as well to make it rotate each round.
+Rep for solving this, thanks and GL! Ask if you need clarification.