//Get a random number between 0 and 9 inclusive
NSUinteger randomIndex = random() % [employees count];
This is in the main.m file, near the end of chapter 19 in book. I dont quite understand how the random() function works in this line of code. How does this method call, that gets called each time the for loop executes know not to double up on previously seclected numbers between 0-9?
when calling [employees count], is it starting at 0 and incrementing by one with each loop?