var arr = [ 1, 2, 3, 4 ]
arr.sort( function(a, b ) {
var rand = Math.random();
if( rand - 0.5 > 0 ){
return 1;
}else{
return -1;
}
console.log( arr )