Randomizer
#1

How do you make a randomizer that chooses randomly between 6 cases?

I totally forgot.
Reply
#2

pawn Код:
new rand = random(6);
switch(rand)
{
    case 1:
    {
        //Do somthing
    }
    case 2..4:
    {
        //If when case is between 2 and 4 inclusive do something.
    }
}
Reply
#3

Wow i forget the simplest of things... and thanks.
Reply
#4

Yea...we all do.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)