Created
September 19, 2016 01:30
-
-
Save DisappearPing/9ea534fa228e8764fd5a66fb84555f87 to your computer and use it in GitHub Desktop.
Random Number swift2.2
This file contains hidden or 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
| func randomFromZeroTo(number: Int) -> Int { | |
| return Int(arc4random_uniform(UInt32(number))) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment