how to pick a random number from 0 to 4 java code example Example: random number in range java (int)(Math.random() * ((max - min) + 1)) + min Copy