Thread: [Solved] !roulette random possibility
View Single Post
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 12-13-2017 , 10:16   Re: !roulette random possibility
Reply With Quote #2

PHP Code:
int num GetRandomInt(1100);

if (
num <= 48)
{
    
// Black
}
else if (
num <= 48 48// Or just <= 96, but I think it's easier to understand like that?
{
    
// Red
}
else 
/* if (num <= 48 + 48 + 4) */
{
    
// Green

__________________
hleV is offline