import random random.seed(6) x = set(str(i) for i in range(500)) print(random.sample(x, 1))