That is slightly unusual. Most indexing on computer sciences is done on a 0‑based basis. Anyway: have you got a way of generating that number? Well, sort of (line 48). I don't like arithmetic with Math.random(), not even if the Java™ Tutorials show you an example. Random has a method which produces such a result more efficiently, but make sure to read its documentation carefully.
Dwayne Jenkins wrote:. . . random number generated between 1 and 33,736, inclusive. . . .
There is a worse problem than new people not understanding Scanner. I think lots of people, even experienced people, don't understand it, and (as Winston Gutkowski pointed out ages ago) I haven't seen many good tutorials about it, and books are often not clear about its vagaries. People find out it has vagaries, trip over them, and then dismiss the class as useless.
Matthew Bendford wrote:. . . new devs new to Java not correctly understanding how to use Scanner . . . .