First of all set all question set to display none than try this javascript funtion as per your need and you'll get random number between 0 to 10 ans set that question display block
<p>Click the button to display a random number.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
function myFunction() {
document.getElementById("demo").innerHTML = Math.floor(Math.random() * 6) + 1;
}