CyberMaster,
А поиск? не ?
Array.prototype.shuffle = function( b ){
var i = this.length, j, t;
while( i ){
j = Math.floor( ( i-- ) * Math.random() );
t = b && typeof this[i].shuffle!=='undefined' ? this[i].shuffle() : this[i];
this[i] = this[j];
this[j] = t;
}
return this;
};
Array.prototype.shuffle = function () {
this.sort(function () {
return 0.5 - Math.random()
});
return this
};