from random import *
for i in range(10):
rnd=randint(1,10)
print(rnd)
Что не хватает этому коду )?
>>> import random
>>> numbers = range(100)
>>> random.sample(numbers, 10)
[0, 14, 94, 93, 22, 7, 45, 20, 61, 3]
>>> random.sample(numbers, 10)
[72, 73, 26, 11, 19, 71, 76, 45, 80, 23]
>>> numbers = list(range(10))
>>> random.shuffle(numbers)
>>> numbers
[2, 1, 7, 6, 9, 4, 0, 8, 3, 5]
>>> random.shuffle(numbers)
>>> numbers
[1, 6, 7, 9, 3, 8, 2, 5, 4, 0]