I have written a method variation:
private int variation() {
int randomNumber = randomGenerator.nextInt(90);
return (randomNumber + handicap)/18 - 2;
}
Assuming that the handicap is = 18, what are the minimum and maximum values that this method can return?
Aucun commentaire:
Enregistrer un commentaire