new random
#4

Code:
new rand = random(5);
{
and there others random
}
what are the point of having the brackets here? Does it even compile?
Anyway, if you're having a random number calculated everytime, why not do it once below the first random?
(i.e. having
Code:
new rand1 = random(5); 
new rand2 = random(5);
switch(rand1)
...
)
The code would be cleaner. Besides that, nothing to improve really.
Reply


Messages In This Thread
new random - by Calinut200 - 21.05.2020, 14:29
Re: new random - by Skimmer - 21.05.2020, 14:40
Re: new random - by Calinut200 - 21.05.2020, 16:48
Re: new random - by Adamoneoone - 21.05.2020, 17:02

Forum Jump:


Users browsing this thread: 1 Guest(s)