client.js
// Fisher-Yates draw-without-replacement shuffle
Fisher-Yates draw-without-replacement shuffle
Fisher - Yates draw - without - replacement shuffle
function shuffle(array) {
  for (var i = array.length - 1; i > 0; i -= 1) {
    var j = randi(i + 1);
    var temp = array[i];
    array[i] = array[j];
    array[j] = temp;
  }
}
function shuffle ( array ) { for ( var i = array . length - 1 ; i > 0 ; i -= 1 ) { var j = randi ( i + 1 ) ; var temp = array [ i ] ; array [ i ] = array [ j ] ; array [ j ] = temp ; } }
Fisher-Yates draw-without-replacement shuffle
Fisher - Yates draw - without - replacement shuffle