Created
April 29, 2015 07:39
-
-
Save samuelbeek/77dd42bfce36ffdb060d to your computer and use it in GitHub Desktop.
Generate 4 digit code in 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
// Verification code is at least for digit long | |
let verificationCode = String(1000+arc4random_uniform(8999)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment