Created
November 24, 2019 17:06
-
-
Save GrantJEmerson/e5146c2d351c89daecd18fc85030bb15 to your computer and use it in GitHub Desktop.
Indexing Into Randomness - SwiftMoji Entry #22
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
import Foundation | |
let buffet = ["๐", "๐", "๐ญ", "๐ฅ", "๐ฏ", "๐ฅ"] | |
let dinner = buffet.randomElement()! | |
print("Tonight I will eat \(dinner).") // Tonight I will eat ๐. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment