title: Shuffling a list of objects
body: <p>How do I shuffle a list of objects? I tried <a href="https://docs.python.org/library/random.html#random.shuffle" rel="nofollow noreferrer"><code>random.shuffle</code></a>:</p>
  <pre><code>import random
  
  b = [object(), object()]
  
  print(random.shuffle(b))
  </code></pre>
  <p>But it outputs:</p>
  <pre><code>None
  </code></pre>