Possible Duplicate:
Randomizing elements in an array?
I found this "Quote Rotator" script on the web and it works fine for what it does, but I'd like to randomize the order the quotes are displayed instead on just cycling through the list. Any help would be appreciated.
var myquotes = new Array(
'Quote #1',
'Quote #2',
'Quote #3' // Leave the last quote without a comma at the end
);
function rotatequote()
{
thequote = myquotes.shift(); //Pull the top one
myquotes.push(thequote); //And add it back to the end
document.getElementById('quotetext').innerHTML = thequote;
t=setTimeout("rotatequote()",10000);
}
// Start the first rotation.
rotatequote();