Possible Duplicate:
JavaScript: Getting random value from an array
var numbers = new Array('1','2','4','5','6','7','8','9','10');
I have a JavaScript Array and now want to randomly choose four different numbers from it and then express it on the page (through document.write
). Obviously each time the page is reloaded by the user it would show four different random numbers.