Code:
for (int j = 0; j < numberArray.count; j++) {
int randomIndex = (arc4random() % 52);
[cardsArray exchangeObjectAtIndex:j withObjectAtIndex:randomIndex];
}
Thats what I am using to shuffle the cards but it says "cardsArray may not respond to exchangeObjectAtIndex"