title: How to randomly shuffle asyncio.Queue in Python?
body: <p>When I want to randomly shuffle a list in Python, I do:</p>
  
  <pre><code>from random import shuffle
  shuffle(mylist)
  </code></pre>
  
  <p>How would I do the equivalent to an instance of <a href="https://docs.python.org/3.7/library/asyncio-queue.html" rel="nofollow noreferrer">asyncio.Queue</a>? Do I have to convert the queue to a list, shuffle the list, and then put them back on the Queue? Or is there a way to do it directly?</p>