OK I'll try and make this not as confusing as the title.
I have 4 UIImageViews, view1, view1, view3 and view4. And I need to randomize them and randomize the count, based off a certain difficulty and level deep a player is, in a game I'm working on.
So I have an array, say, [currentSequence] and it contains those 4 uiimageviews. Well, I need to be able to totally randomize it. Say, this can be what's in it. vie1, view1, vie3, view3, view3, view4, view4, view1, view1, view2, etc etc.
It's a memory matching game. So order is important. I need these objects randomized once and to hold, until I wipe them out when the player enters a new round and a new set made.
I also plan on having a limited number of sequences in a round, like 6. So if we're at sequence 1, the views that will appear can be, view1, view2, view2, view4. Then sequence two starts with the same order, but it will add a few more objects.
Think the old game, Simon.
Right now I just need a solution for randomizing the count and objects, for a limited set of objects (4).
Thanks.