1

This is the array:

var objectArray = [AnyObject]()

I want to re-organise its objects in a totally random way. Something like:

objectArray = objectArray.random
Alessandro
  • 3,909
  • 11
  • 61
  • 127
  • Used self.objectArray = sorted(self.objectArray) {_, _ in arc4random() % 2 == 0}, works great – Alessandro Jul 20 '15 at 18:55
  • According to the comments to http://stackoverflow.com/a/24026828/1187415 and http://stackoverflow.com/a/24045300/1187415, that is *not* a good solution. – Martin R Jul 20 '15 at 20:03

0 Answers0