First, switch your random() action to: int(random(0,3)). This gives an even chance of each number. round(random(0,2)) doesn't.
You can also use choose: choose(0,1,2). You could have different choose() lines for different levels if you can't get arrays to work.
Arrays will work, but this might be easier to understand.