js/main.js
/**
 * Shuffles array in place.
 * @param {Array} a items The array containing the items.
 */
Shuffles array in place.
@param {Array} a items The array containing the items.
Shuffles array in place . @param { Array } a items The array containing the items .
function shuffle(a) {
    var j, x, i;
    for (i = a.length; i; i--) {
        j = Math.floor(Math.random() * i);
        x = a[i - 1];
        a[i - 1] = a[j];
        a[j] = x;
    }
    return a
}
function shuffle ( a ) { var j , x , i ; for ( i = a . length ; i ; i -- ) { j = Math . floor ( Math . random ( ) * i ) ; x = a [ i - 1 ] ; a [ i - 1 ] = a [ j ] ; a [ j ] = x ; } return a }
Shuffles array in place.
Shuffles array in place .