Here is the array I can access randomly for the ten values.
var numArray = [1,2,3,4,5,6,7,8,9,10];
var rand = Math.floor(Math.random()*10);
var answer = numArray[rand];
console.log(answer);
However, it repeats the same value sometimes. How do I ensure that the display value doesn't repeat consecutively?