I want to use javascript to generate 10 no-repeat random numbers and the number is in the range 1 to 10.how can I realize it?The 10 numbers stored in a array.
this the code i have but the numbers repeats itself
function myFunction() {
var x = Math.floor((Math.random() * 9) + 1);
document.getElementById("question").innerHTML = Allquestion[x];
}