Use arc4random_uniform() instead of arc4random % foo.