Quote:
Originally Posted by MrOmega
I thought random could never reach the limit so the last parameter would never be selected?
|
Arrays start at 0, so the last element is always Array.size() - 1. Which is why you can just pass the size to the maximum parameter in random.