21.05.2020, 14:29
Helo!
If i have a code like that
I have how to optimize? Or to kill some random and still work?
If i have a code like that
PHP Code:
new rand = random(5);
switch(rand)
{
case 0:
{
new rand = random(5);
{
and there others random
}
}
case 1:
{
new rand = random(5);
{
and there others random
}
}
case 2:
{
new rand = random(5);
{
and there others random
}
}
case 3:
{
new rand = random(5);
{
and there others random
}
}
case 4:
{
new rand = random(5);
{
and there others random
}
}