04.01.2017, 12:40
(
Последний раз редактировалось coool; 04.01.2017 в 13:19.
Причина: random of 11
)
Make random of 10 numbers and in the if statement check only 1 number like this
We get random of 10 numbers but we check if the random results 1 that means 1 out of 10
EDIT: Marcel was fast || Ok random of 11
PHP код:
new rand = random(11); //random 11 because it will only have 10 numbers.
if(rand == 1) //if the random result is 1 or what ever number you like
{
//Do some thing here
}
EDIT: Marcel was fast || Ok random of 11