Possible Duplicate:
What's the Best Way to Shuffle an NSMutableArray?
I have some values in a NSMutableArray
. Now i need to shuffle these values. Can someone tell me how to shuffle these values.
Sorry i don't have any code to demonstrate.
I went through this SO post, which suggest to use exchangeObjectAtIndex:withObjectAtIndex:
, but can someone show me how it is done. An example or a tutorial which explains this would help.