Skip to content

Instantly share code, notes, and snippets.

@arbo-hacker
Created May 18, 2017 17:11
Show Gist options
  • Save arbo-hacker/87dc4d7255b995e7e798d747c91b20c3 to your computer and use it in GitHub Desktop.
Save arbo-hacker/87dc4d7255b995e7e798d747c91b20c3 to your computer and use it in GitHub Desktop.
Como Generar nīmeros aleatorios en SWIFT
let rand = Int(arc4random_uniform(10)) // numero random en base a 10
let rand2 = Int(arc4random()) // numero random
print("numero1: \(rand), numero2: \(rand2)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment