13.07.2010, 10:44
It helps to detect the cause, to show code that isn't reach, wrong variables, etc.
Also, the random function outputs a random amount, but it will never be the 'max' amount you enter.
random(3) will only do:
0
1
2
Not 3.
Also, the random function outputs a random amount, but it will never be the 'max' amount you enter.
random(3) will only do:
0
1
2
Not 3.