JavaGenerate a random numberCopyimport java.util.Random; Random rand = new Random(); int randomNum = rand.nextInt((max - min) + 1) + min;