method in class cannot be applied to given types

generateNumbers() expects a parameter and you aren’t passing one in!

generateNumbers() also returns after it has set the first random number – seems to be some confusion about what it is trying to do.

Leave a Comment