I have an array storing a bunch of questions, I'm trying to randomly pick a question and display it, it's working but I don't want a question to appear more than once, this is what I'm trying but it's not working:
// Randomely pick a question from the array randomItem = questions[Math.floor(Math.random()*questions.length)]; questions.splice(randomItem); random = document.getElementById('questions'); random.innerText = randomItem; counter++;