title: How to loop though range and randomly shuffle a list in Python?
body: <p>Given a list <code>x = [1,0,0,1,1]</code>I can use <code>random.shuffle(x)</code> repeatedly to shuffle this list, but if I try to do this a for loop the list doesn't shuffle. </p>
  
  <p>For example:</p>
  
  <pre><code>x = [1,0,0,1,1]
  k = []
  for i in range(10):
       random.shuffle(x)
       k.append(x)
  return x
  </code></pre>
  
  <p>Basically, <code>k</code>contains the same sequence of x unshuffled? Any work around?</p>