- for (int i = 0; i < 10; i++) {
- System.out.println(get_Random(50,0));
- }
-
-
-
- public static int get_Random(int MAX, int MIN) {
- Random rand = new Random();
- return rand.nextInt(MAX - MIN + 1) + MIN;
- //int MAX = 100, MIN = 1;
- // for (int i = 0; i < 10; i++) {
- // System.out.print(rand.nextInt(MAX - MIN + 1) + MIN + " ");
- // }
- }