lotto.py 208 B

12345678910111213
  1. import random
  2. def main():
  3. rand = list(range(1, 50))
  4. random.shuffle(rand)
  5. for i in range(0, 49, 6):
  6. sel = sorted(rand[i:i + 6])
  7. print(sel)
  8. if __name__ == '__main__':
  9. main()