simbax

lotto.py

Dec 28th, 2012
6,483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. from random import choice
  2. Wylosowane = set()
  3. while len(Wylosowane) < 6:
  4.     Wylosowane.add(choice(range(1, 50)))
  5. for i in range(6):
  6.     x = min(Wylosowane)
  7.     Wylosowane.discard(x)
  8.     print x,
Advertisement
Add Comment
Please, Sign In to add comment