Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- birthdays=[]
- done = False
- while (not done):
- next = random.randint(1,365)
- #print(next)
- if next in birthdays:
- done = True
- else:
- birthdays.append(next)
- print("End of Simulation")
Advertisement
Add Comment
Please, Sign In to add comment