Có, bạn có thể sử dụng phương thức JavaScript Array.sort () để xáo trộn. Hãy xem cách thực hiện
Ví dụ
function shuffleDisplay(arr) {
var tmp, current;
// calculating length
var top = arr.length;
if(top) while(--top) {
current = Math.floor(Math.random() * (top + 1));
tmp = arr[current];
arr[current] = arr[top];
arr[top] = tmp;
}
return arr;
}