I am not sure about how NSSet's anyObject
work. What does it mean that "The object returned is chosen at the set’s convenience" (from the NSSet class reference) ?
Further, how can I best extract objects randomly from a NSSet? I was thinking about getting allObjects
in an array and then myArray[arc4random_uniform(x)]
where x is the number of objects in the array.