Sampling without replacement
import random print random.sample(xrange(100), 10) # sampling without replacement