27.01.2015, 20:00
random starts from 0 if you want 1,2 use random(2)+1
pawn Код:
switch(random(2)+1)
{
case 1: // code
default: or case 2: // code
}