matriz JS Shuffle
yourArray.sort(function() { return 0.5 - Math.random() });
Slocaly
yourArray.sort(function() { return 0.5 - Math.random() });
var demo = document.getElementById("demo");
var fruits = [
"Apple",
"Orange",
"Mango",
"Grapes",
"Banana",
];
demo.innerHTML = fruits[Math.floor(Math.random() * fruits.length)];