jsonQ.js
function(array) {
            for (var i = 1, ln = array.length; i < ln; i++) {
                var j = Math.floor(Math.random() * (i + 1)),
                    tmp = array[i];
                array[i] = array[j];
                array[j] = tmp;
            }

            return array;
        }
function(array) {
            for (var i = 1, ln = array.length; i < ln; i++) {
                var j = Math.floor(Math.random() * (i + 1)),
                    tmp = array[i];
                array[i] = array[j];
                array[j] = tmp;
            }

            return array;
        }
function ( array ) { for ( var i = 1 , ln = array . length ; i < ln ; i ++ ) { var j = Math . floor ( Math . random ( ) * ( i + 1 ) ) , tmp = array [ i ] ; array [ i ] = array [ j ] ; array [ j ] = tmp ; } return array ; }
shuffle the order of elements in a array. returns the same array.
shuffle the order of elements in a array . returns the same array .