Skip to content

Instantly share code, notes, and snippets.

@DisappearPing
Created June 19, 2017 08:43
Show Gist options
  • Save DisappearPing/535bac290faf312b3021a91e11314f90 to your computer and use it in GitHub Desktop.
Save DisappearPing/535bac290faf312b3021a91e11314f90 to your computer and use it in GitHub Desktop.
Swift 3 random int
let maxInt = 9
let randomFrom0ToMaxInt = arc4random_uniform(maxInt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment