random() with Objective C
picknumber = random.Next(1,5);
documentation on random() for Objective C > DOES NOT TELL YOU HOW TO USE IT
it just lectures you on what it is, but not how its used. Its like me writing a book about apples, about their color, how they grow from trees, how they fall to the ground. But I never ONCE EVER tell you its food and that you eat it. How is this good documentation?
picknumber = random() % 5; is this correct? further, how do I ensure this is an absolute number? sorry just a frustrated at Objective C syntax, and weak sauce documentation.
PC, Mac OS X (10.5.3)