Arrays are indexed starting at 0, so:
capital[0] is Montgomery. capital[1] is Juneau and so on. capital[2] is Phoenix.
This means you need to generate a random number between [0, 2] to get a random element from the array. So the answer is simple, the number you need is the ARRAY_SIZE itself.