Created
March 13, 2024 11:52
-
-
Save belovachap/e1d50633a61f30d4fae4d693da041d55 to your computer and use it in GitHub Desktop.
Disc Raffle March 13, 2024
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 datetime | |
import pytz | |
import random | |
central_tz = pytz.timezone('America/Chicago') | |
raffle_datetime = datetime.datetime(2024, 3, 13, 18, 0, 0, 0, central_tz) | |
timestamp = int(raffle_datetime.timestamp()) | |
print("Random seed: {}".format(timestamp)) | |
print("") | |
random.seed(timestamp) | |
marble_blue_prodigy = [ | |
"Jeremiah James", | |
"Ross Kemper", | |
"Shawn Batey", | |
"Patrick Stewart", | |
"Keith Guest", | |
"Michael Moeller", | |
"Timmy Ewing", | |
"Chase Sullivan", | |
"Jakob Brown", | |
"Ricky Wilson", | |
"Joseph Gonyer", | |
"Travis Reaves", | |
] | |
waco_bull_prodigy = [ | |
"Patrick Stewart", | |
"Keith Guest", | |
"Todd Robledo", | |
"Ashlee Bollier", | |
"Michael Moeller", | |
"Timmy Ewing", | |
"Lori Sosa", | |
"Chase Sullivan", | |
"Jakob Brown", | |
"Joseph Gonyer", | |
"Troy Wright", | |
"Randall Weidner", | |
"Joshua Boersma", | |
"Christian Espina", | |
] | |
st_patricks_penny_putter = [ | |
"Randy Dixon", | |
"Jeremiah James", | |
"Jennifer Watson", | |
"Timmy Ewing", | |
"Lori Sosa", | |
"Chase Sullivan", | |
"Nick Montijo", | |
"Jakob Brown", | |
] | |
def pick_and_print_winners(entrants): | |
random.shuffle(entrants) | |
for i, person in enumerate(entrants): | |
print("{}: {}".format(i+1, person)) | |
print("Ordered list of winners for the Marbled Blue Prodigy Disc:") | |
pick_and_print_winners(marble_blue_prodigy) | |
print("") | |
print("Ordered list of winners for the Waco Bull Prodigy Disc:") | |
pick_and_print_winners(waco_bull_prodigy) | |
print("") | |
print("Ordered list of winners for the Saint Patrick's Penny Putter:") | |
pick_and_print_winners(st_patricks_penny_putter) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment