I\'d like to generate a list of n_length consisting of randomly generated numbers within a defined range. What I\'d like to know is whether I\'m missing something built-in, som
I believe you are looking for
rand_list = [randrange(700, 1500) for _ in xrange(100)]
I think this is better if you don't care about the distribution:
>>> random.sample(xrange(700, 1500), 100)