Possible Duplicate:
How to remove first element of an array in javascript?
function write() {
for (var x = 1; x <= 3; x++) {
var question = new Array("If you are goofy which is your leading foot", "Riding switch is when you do what", "On your toe side which way should you lean", "question 4", "question 5", "question 6");
var l = question.length;
var rnd = Math.floor(l * Math.random());
document.write(question[rnd]);
document.write("<br>")
}
}
This is my code but it outputs the same question(string) sometimes when i want the three questions to be unqique, how do i remove an element from the array after its output?