You could have used a var with $r(1,10) then an if statement to check if what they typed is the right number then a else to say it was wrong.