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
How about a while loop instead? Initialise a2 = a1 and then:
a2 = a1
while(a2 == a1) { a2 = Math.floor(Math.random() * 4 + 1); }