Java generates four methods for not repeating random numbers