You could do something like this:
every tick
set oldval to var
set var to Choose("1","2","3")
while
var=oldval
set var to Choose("1","2","3")
You could also do the following:
variable choices="1,2,3,"
variable value="1"
set value to tokenat(replace(choices, value & ",", ""),int(random(tokencount(choices,",")-2)),",")