Possible Duplicate:
What’s the Best Way to Shuffle an NSMutableArray?
I develop apps for iphone/iPad.I want to shuffle the objects stored in an NSArray.Is there any way to achieve it with objective-c?
Possible Duplicate:
What’s the Best Way to Shuffle an NSMutableArray?
I develop apps for iphone/iPad.I want to shuffle the objects stored in an NSArray.Is there any way to achieve it with objective-c?
Add a category to NSMutableArray, with code provided by Kristopher Johnson -
See if this sample helps.
You can see this previous SO question too canonical way to randomize an NSArray in Objective C