Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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