I have a populated NSArray. I want to be able to print out the contents of the Array in a random order so that each Object is only printed out once. The next time I print them out I want them to be in an entirely different order to what they were printed out as before. If anyone can help me it would be greatly appreciated.
Thanks
Lollipop
Asked
Active
Viewed 52 times
0

Lollipopassasin
- 21
- 1
- 2
-
Make a mutable copy, shuffle, print, repeat. – Apr 15 '13 at 04:36
-
See http://stackoverflow.com/questions/791232/canonical-way-to-randomize-an-nsarray-in-objective-c – rmaddy Apr 15 '13 at 04:38
-
2What the heck is going on? It feels like this questions pops up twice a day ... – HAS Apr 15 '13 at 05:21