Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- def main():
- bigWinner()
- def bigWinner():
- count = 0
- ticket = []
- while count < 6:
- number = random.randrange(1, 50)
- if not(number in ticket):
- ticket.append(number)
- else:
- count -= 1
- count += 1
- ticket.sort()
- print(ticket)
- if __name__ == "__main__":
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement