Random(X) to pick randomly for specific numbers
#3

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
}
Reply


Messages In This Thread
Random(X) to pick randomly for specific numbers - by CalvinC - 27.01.2015, 19:48
Re: Random(X) to pick randomly for specific numbers - by Sime30 - 27.01.2015, 19:57
Re: Random(X) to pick randomly for specific numbers - by Jefff - 27.01.2015, 20:00
Re: Random(X) to pick randomly for specific numbers - by CalvinC - 27.01.2015, 20:08
Re: Random(X) to pick randomly for specific numbers - by ball - 27.01.2015, 20:18

Forum Jump:


Users browsing this thread: 2 Guest(s)