Skip to content

Commit 43e4d71

Browse files
committed
Add call to random.seed() and change print statement to print function.
1 parent 8797838 commit 43e4d71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

raffle.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
def raffle_time(api_key=None, event_id=None):
1010
client = PythonKCMeetups(api_key=api_key)
1111
attendees = client.get_event_attendees(event_id)
12+
random.seed()
1213
random.shuffle(attendees)
1314
winner = random.choice(attendees)
1415
if winner.photo:
1516
webbrowser.open_new(winner.photo.url)
16-
print "\n\nAnd the winner is, %s \n\n" % winner.name
17+
print("\n\nAnd the winner is, %s \n\n" % winner.name)
1718

1819

1920
if __name__ == '__main__':

0 commit comments

Comments
 (0)