On a recent search for code to shuffle an NSArray, I ran into Bryan Luby’s implementation. This was an interesting find as Bryan’s post also led me to Fisher-Yates shuffle algorithm as well as a thorough assessment on The Danger of Naïveté, both worth a read.
Here are a few more code examples for array shuffling.
All Content Copyright © 2008-2014 • iOS Developer Tips, All Rights Reserved.
iPhone and iPad are registered trademarks of Apple, Inc.
iOS is a registered trademark of Cisco Technology, Inc.