karen_constantine

Untitled

Nov 10th, 2023
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #КОД ГЕНЕРАТОРА 6 ЧИСЕЛ ДЛЯ ЛОТЕРЕИ 6 ИЗ 45
  2. from random import randint
  3.  
  4. tmp = []
  5. while len(tmp) < 6:
  6. x = randint(1, 46)
  7. if x not in tmp:
  8. tmp.append(x)
  9.  
  10. print(*tmp)
Advertisement
Add Comment
Please, Sign In to add comment