following code:
the variable is only changed when 1 returns;
switch(Greenfoot.getRandomNumber(2))
{
case 0: var++;
case 1: var--;
}



