They coud have strived to make it a bit simpler to use, or at least made the documentation more clear.
NSNUmber *rand1;
rand1 = [NSNumber numberWithUnsignedInt:arc4random()];
to set the range:
fmod([rand1 floatValue], 1000.0); //random number from 0-1000;
|