import random b_list = range(1000,2000) result = random.sample(b_list, 3) print result