When I build the code from the BNREmployee example in the book it builds fine. But when I run it I get an error at the line for getting a random employee number:
[code]//Get a random number between 0 and 9 inclusive
NSUInteger randomIndex = random() % [employees count];
Thread 1: EXC_ARITHMETIC (code = EXC_I386_DIV, subcode=0x0)
I looked into the documentation but could not find reference to random().