Replacing arc4random() with arc4random_uniform().