I've created a typedef enum for my iPhone app...
typedef enum {
FirstType,
SecondType,
ThirdType
} type;
Just for testing I'd like to be able to pick a random type from these.
I was going to use arc4random() % 4
to do it and just use the int in its place but wanted to check if there was a better way of doing this.