Created
November 28, 2014 19:05
-
-
Save joncode/b5a8a3db4d1e30f94398 to your computer and use it in GitHub Desktop.
ios randomize - choose one or other randomly
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
message.sentByString = arc4random_uniform(2) == 0 ? [LGChatMessage SentByOpponentString] : [LGChatMessage SentByUserString]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment