Show HN: A visual explanation of Fisher–Yates shuffle
Beautiful. I love the visual demonstrations of the less efficient methods as well. This is a great learning tool for a super common programming problem. One general comment/question. Code like this trips me up:<p><pre><code>  t = array[--m];
</code></pre>
Well I don't know if it trips me up so much as it makes me think too much about syntax especially when the focus is on the algorithm itself. When writing educational code I find the following more effective:<p><pre><code>  m -= 1;
  t = array[m];
</code></pre>
Anyone else have any thoughts?