Dice Simulation on a 3x3 LED Matrix

if (randm = 1)always true.

When you've fixed that one, this one will bite you.

else if (randm == 2) {
  two();
}
else if(randm == 2) {
  three();