Skip to content

Commit f1aad7d

Browse files
authored
Merge pull request jsquared21#24 from jeremies/issue23
Fixes jsquared21#23 Display the first 50 random integers between 0 and 100
2 parents 6e8e489 + d2f27e4 commit f1aad7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Exercise_09/Exercise_09_04/Exercise_09_04.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ public static void main(String[] args) {
1212
// Displays the first 50 random integers between 0 and 100
1313
for (int i = 1; i <= 50; i++) {
1414
if (i % 10 == 0)
15-
System.out.printf("%5d\n", randomNumber.nextInt(1000));
15+
System.out.printf("%5d\n", randomNumber.nextInt(100));
1616
else
17-
System.out.printf("%5d", randomNumber.nextInt(1000));
17+
System.out.printf("%5d", randomNumber.nextInt(100));
1818
}
1919
}
20-
}
20+
}

0 commit comments

Comments
 (0)