Skip to content

Instantly share code, notes, and snippets.

@2hands10fingers
Created September 16, 2020 01:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2hands10fingers/c20d3250e0bdae3f75e4015b3480ef78 to your computer and use it in GitHub Desktop.
Save 2hands10fingers/c20d3250e0bdae3f75e4015b3480ef78 to your computer and use it in GitHub Desktop.
Choose a Whiskey at Random
from random import randrange
# All dem whiskeys
whiskeys = [
'Blade & Bow',
'Ohishi Whisky Sherry',
'Glenlivet',
'Oban',
'Suntory Whiskey Toki',
'Powers whiskey',
'Iwai white',
'Laphroaig',
'Laphroaig',
'Laphroaig',
'Laphroaig',
'Laphroaig',
'Lagavulin',
'Woodford and Bulliet',
'Balcones Rumble',
'Balcones Brimstone',
'Balcones Brimstone',
'Wild Turkey Rare Breed',
'Four Roses Single Barrel',
'Four Roses Single Barrel',
'Four Roses Single Barrel',
'Bib & Tucker',
'Highland Park 12',
'Ardbeg 10 year',
'Buffalo Trace'
]
selected_whiskey_list = set()
whiskey_list_length = len(whiskeys)
for i in range(1, len(set(whiskeys))):
randomly_selected_number = randrange(0, whiskey_list_length)
selected_whiskey = whiskeys[randomly_selected_number]
selected_whiskey_list.add(selected_whiskey)
print(selected_whiskey_list) #Finished list of all the whiskeys chosen!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment