I'm trying to create a random order for my levels to be picked from in sets of ten. I have an array that has 1,1 to 10,10 all marked with ones. (I avoided starting at 0,0 so the numbers match up better.) If a level is completed, the spot will be marked/changed to a 0.
The Y part of the array is the tier difficulty and is preset until a player defeats 10 levels at which time the games adds +1 to it thus moving the player to the second tier of levels.
I've tried using int or floor(random(1,10)) and choose(1,2,3,4,5,6,7,8,9,10) to pick the X. I need it to check if (LevelSelected, LevelTier)=0 in my array because if it does it needs to pick again. Even with manipulating the array to only have some of them be 1's the game still cycles through all of ten options.