Odds of executing something
#2

pawn Код:
static randomnumber = random(100);
if(randomnumber <= 50)
{
   // 50%
}
else if(50 < randomnumber <= 83)
{
   // 33%
}
else if(83 < randomnumber <= 93)
{
 // 10%
}
else
{
 // 7%
}
Reply


Messages In This Thread
Odds of executing something - by Whizion - 26.02.2015, 02:44
Re: Odds of executing something - by rickisme - 26.02.2015, 02:51
Re: Odds of executing something - by SickAttack - 26.02.2015, 03:03

Forum Jump:


Users browsing this thread: 1 Guest(s)