Quote:
Originally Posted by stigma
Why is it random(0,3) - When there's 4 in the "const"
|
Because array indexes start at 0. So if you have 4 elements in an array, valid indexes are: 0, 1, 2, and 3. If you used random_num(0,4) and 4 came up, it would be out of bounds, because you are trying to reference the 5th element which doesn't exist.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS