title: Big array with random numbers with python
body: <p>I need to generate a big array (or list) with random numbers ( 10⁵ numbers) . I was trying like that:</p>
  
  <pre><code>vet = random.sample(range(10),100000)
  </code></pre>
  
  <p>But when I try to run :</p>
  
  <pre><code>vet = random.sample(range(10),10000)
  </code></pre>
  
  <p>File "/usr/lib/python2.7/random.py", line 320, in sample
      raise ValueError("sample larger than population")
    ValueError: sample larger than population</p>
  
  <p>Any solution?</p>
  
  <p>tkns</p>