The function shown in the screenshot below is executed many times before it randomly throws the index out of range exception. The index at the moment of the exception was 49