Created
July 25, 2018 16:08
-
-
Save andru255/cb9856d4d3100f3a84242fcc19e5c362 to your computer and use it in GitHub Desktop.
Función stub de randomNumber.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
// Implementación que retorna un valor fijo a diferencia de la Función original | |
func randomNumber(min: Int, max: Int) -> Int { | |
return 10 | |
} | |
let myNumber = randomNumber(min: 5, max: 31) //retornará siempre 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment