title: Generating random string of size 100 or more in python
body: <p>When I am trying to generate random string of size 100 or more, it gives me exception...</p>
  
  <pre><code>msg="".join(random.sample(string.letters+string.digits,random.randint(5,100)))
  
  Exception:
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/usr/lib/python2.7/random.py", line 316, in sample
      raise ValueError, "sample larger than population"
  ValueError: sample larger than population
  </code></pre>
  
  <p>Can you help me and explain how can I generate a random string of size more than 100??
  and also why is this exception?</p>