26.02.2015, 02:44
Is there a better way of doing this:
Thank you.
pawn Код:
if(random(2) == 1)
{
// 50% chance of code being executed.
}
if(random(3) == 2)
{
// 33% chance of code being executed.
}
if(random(10) == 2)
{
// 10% chance of code being executed.
}