Chances with percentage
#10

Quote:
Originally Posted by coool
Посмотреть сообщение
Make random of 10 numbers and in the if statement check only 1 number like this
PHP код:
new rand random(9); //random 9 because it will only have 10 numbers. 
We get random of 10 numbers but we check if the random results 1 that means 1 out of 10
EDIT: Marcel was fast
wrong random(9) will have only 9 numbers (0 - 8 )
Reply


Messages In This Thread
Chances with percentage - by AndreiWow - 04.01.2017, 12:28
Re: Chances with percentage - by BiosMarcel - 04.01.2017, 12:40
Re: Chances with percentage - by coool - 04.01.2017, 12:40
Re: Chances with percentage - by AndreiWow - 04.01.2017, 12:51
Re: Chances with percentage - by coool - 04.01.2017, 12:54
Re: Chances with percentage - by BiosMarcel - 04.01.2017, 12:55
Re: Chances with percentage - by AndreiWow - 04.01.2017, 13:06
Re: Chances with percentage - by BiosMarcel - 04.01.2017, 13:10
Re: Chances with percentage - by GoldenLion - 04.01.2017, 13:10
Re: Chances with percentage - by SyS - 04.01.2017, 13:13

Forum Jump:


Users browsing this thread: 2 Guest(s)