title: How can I shuffle an array?
body: <p>I want to shuffle an array of elements in JavaScript like these:</p>
  
  <pre><code>[0, 3, 3] -&gt; [3, 0, 3]
  [9, 3, 6, 0, 6] -&gt; [0, 3, 6, 9, 6]
  [3, 3, 6, 0, 6] -&gt; [0, 3, 6, 3, 6]
  </code></pre>