create a random number from 0 to 5: var randomNumber = arc4random_uniform(6) Categories: Iphone Swift 3