I\'m trying to create an array of strings that can be randomized and limited to a certain x number of strings.
If the array could be randomized I could pick the firs
Just a tip, it's not necessary to shuffle the contents of the array. Just randomize the access. For each card you want to pick from the deck, pick a random number and select the card at that index. Then, take the top card and place it where the card you just picked was.
If you really want to sort the array though, you can do it with very little code using -sortedArrayUsingSelector: where your comparison method returns NSOrderedAscending or NSOrderedDescending randomly.