Буккит случайный
int upper = 5;
Random random = new Random();
int output = random.nextInt(upper)
Colorful Corncrake
int upper = 5;
Random random = new Random();
int output = random.nextInt(upper)