function shuffleArray(array) {
  for (var i = array.length - 1; i > 0; i--) {
    var j = Math.floor(Math.random() * (i + 1));
    var temp = array[i];
    array[i] = array[j];
    array[j] = temp;
  }
}
// Randomize array in-place using Durstenfeld shuffle algorithm.
Randomize array in-place using Durstenfeld shuffle algorithm.
Randomize array in - place using Durstenfeld shuffle algorithm .
function shuffleArray(array) {
  for (var i = array.length - 1; i > 0; i--) {
    var j = Math.floor(Math.random() * (i + 1));
    var temp = array[i];
    array[i] = array[j];
    array[j] = temp;
  }
}
function shuffleArray ( array ) { for ( var i = array . length - 1 ; i > 0 ; i -- ) { var j = Math . floor ( Math . random ( ) * ( i + 1 ) ) ; var temp = array [ i ] ; array [ i ] = array [ j ] ; array [ j ] = temp ; } }
Randomize array in-place using Durstenfeld shuffle algorithm.
Randomize array in - place using Durstenfeld shuffle algorithm .