I would suggest doing something more along the lines of not actually changing the index positions of the cards. Instead, use a random number generator and an if check to make sure you havent accessed that position already to retrieve cards from the deck at random.
If this were in java i'd say just use Collections.shuffle(), but i don't know the NSMutableArray equivalent if there is one.
|