13.05.2014, 11:58
Hello again, I want to ask does this code generate 10 or 11 numbers in the sense of adding 0 as another number + those from 1 to 10 are 11 or so?
I ask because there wondering one thing and do not know whether it is so
with 27 numbers
or
with 27 numbers plus a zero to the numbers from 1 to 27 = 28
Which of these is the 2 correct?
I ask because there wondering one thing and do not know whether it is so
with 27 numbers
PHP код:
switch (random(27-RLTnfo[playerid][Chance]))
{
case 0,1: //7,40% - 28,57% by 20 level Chance
{
//code
}
}
with 27 numbers plus a zero to the numbers from 1 to 27 = 28
PHP код:
switch (random(27-RLTnfo[playerid][Chance]))
{
case 0,1: //7.14% - 25% by 20 level Chance
{
//code
}
}