| Start |
|---|
| Basic Random Integer The arc4random_uniform(upper_bound) will return a uniformly distributed random number less than upper_bound. arc4random_uniform() is recommended over constructions like ''arc4random() % upper_bound'' as it avoids "modulo bias" when the upper bound is not a power of two. |
| Random Integer within a Range The following code demonstrates usage of This works to create a range because |
Read Article
https://develop.horje.com/learn/1434/reference