I know there are some similar questions,but all of them just return a list,I just need a number,each time random generate a unique single number:
Now I'm using Python to build a loop:
for _ in range(9):
random_number=random.randint(1,11)
print(random_number)
My question is how to make sure each time the random_number is unique,not repeating in all 9 times. I don't need a list,just the random_number