Ranged Random Numbers in Objective C
Sounds pretty basic, and it is, but like many things there are lots of ways to do it. This is my new favorite:
1
|
|
Based on discussions on StackOverflow and my own testing.
This assumes you’re on iOS 4.3 or later, however.