How do you generate a random number between 1 and 3 in Java? code example Example: random number in range java (int)(Math.random() * ((max - min) + 1)) + min Copy