And what if you do the same thing in java having almost built in fuctions for random numbers picking where you just put your priority e.g
Random().nextInt(int bound) generates a random integer from 0 (inclusive) to bound (exclusive)
If you give the function
private static int getRandomNumberInRange(int min, int max)
private static int getRandomNumberInRange(0, 6) it will generate random numbers between 0 and 6
RE: [deleted]