elegant way to disorder a list
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/473973/shuffle-an-array-with-python">Shuffle an array with python</a>  </p>
</blockquote>



<p>let's say I have a list <code>myList=[1,2,3,4,5]</code>,and I want to disorder it randomly:</p>

<pre><code>disorder(myList) # myList is something like [5,3,2,1,4] or [3,5,1,2,4] now
</code></pre>

<p>the way I am using is</p>

<pre><code>from random import randint
upperBound = len(myList)-1
for i in range(10):
    myList.insert(randint(0, upperBound), myList.pop(randint(0, upperBound)))
</code></pre>

<p>this works, but I think it's obviously inelegant. I am wondering whether there is an elegant and efficient way to achieve my goal.</p>
