Random

Get random value less than 8999
arc4random_uniform(8999)

Get a random number from an array

let ranNum = arc4random_uniform(UInt32(allTheNotes.count))
        let ranNum2 = Int(ranNum)

        self.thisNoteID = allTheNotes[ranNum2].noteID

Comments

Popular posts from this blog

Using the camera

Things to consider when designing the user interface

Rotation