Created
May 18, 2017 17:11
-
-
Save arbo-hacker/87dc4d7255b995e7e798d747c91b20c3 to your computer and use it in GitHub Desktop.
Como Generar nīmeros aleatorios en SWIFT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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