-
Random order of the numbers 0,1,2,3,4,5,6,7,8
Dear all,
I have a composition with 9 colored squares next to each other, and I want to randomly change the order of these squares every second. I’ve created nine expression sliders with integer values that I have related to the position of the squares (multiplied by the pixel width of the squares, so square 0 has X-position 0*1024, square 1 has position 1*1024, and so forth).
The challenge is getting nine random numbers without duplicates (because then two or more squares would overlap). How could I get nine random numbers without duplicates? Basically, how could I get a random order of the number series 0,1,2,3,4,5,6,7,8 every second?Thanks in advance!