We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68c9cd1 commit cc1aaccCopy full SHA for cc1aacc
1 file changed
random.java
@@ -0,0 +1,12 @@
1
+import java.util.*;
2
+class GenerateRandomNumber {
3
+ public static void main(String[] args) {
4
+ int counter;
5
+ Random rnum = new Random();
6
+ System.out.println("Random Numbers:");
7
+ System.out.println("***************");
8
+ for (counter = 1; counter <= 5; counter++) {
9
+ System.out.println(rnum.nextInt(200));
10
+ }
11
12
+}
0 commit comments