Skip to content

Instantly share code, notes, and snippets.

@yunustek
Created October 7, 2018 16:56
Show Gist options
  • Save yunustek/c0cb1bbcfdd72b466324a9231cac9186 to your computer and use it in GitHub Desktop.
Save yunustek/c0cb1bbcfdd72b466324a9231cac9186 to your computer and use it in GitHub Desktop.
Random Sayı Üretimi
var groceryList = ["Milk", "Eggs", "Bread", "Nutella"]
if let randomGroceryItem = groceryList.randomElement() {
print("The random grocery item is \(randomGroceryItem)")
}
//The random grocery item is Milk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment