I am developing an application where I want to randomly select an object from a collection. My initial instinct was to use an NSMutableArray and use random() to generate an index. As I was looking through the Cocoa frameworks, I came across the NSSet class and its anyObject method that would appear, at first glance, to do what I want.
I'd like to keep with the Cocoa frameworks whereever possible, so my question is this: How random is NSSet's anyObject method, i.e. would I get much better randomness using random() and an NSMutableArray?
TIA.