def choose():
    random.choice(tuple(bigset))

def sample():
    random.sample(bigset, 1)[0]
print(('random.choice:', timeit.timeit(choose, setup='global bigset',
    number=10000)))
random.choice из набора? питон