For some reason the following code doesn\'t work.
var a1 = Math.floor(Math.random()*4+1); //Answer2 for(a2 = 0; a2 != a1 && a2 != 0; a2 = Math.floo
Just add one if the number is greater than or equal to the one you want to exclude:
var a2 = Math.floor(Math.random() * 3 + 1); if(a2 >= a1) { a2++; }