How can I shuffle an NSArray?

Posted by Mr. McPepperNuts on Stack Overflow See other posts from Stack Overflow or by Mr. McPepperNuts
Published on 2010-06-07T19:42:41Z Indexed on 2010/06/07 19:52 UTC
Read the original article Hit count: 271

Filed under:

All examples I find on shuffling arrays are for NSMutableArrays. Copying an NSArray to an NSMutable array, shuffling, then copying back always crashes the application. Is it even possible to shuffle an NSArray?

Anything in objective-c similar to Collections.shuffle() (Java)?

© Stack Overflow or respective owner

Related posts about objective-c