updated to arc4random_uniform()