java how to generate a random number from 0-6 code example
Example: how to generate a random number in java
import java.util.Random;
Random rand = new Random();
int maxNumber = 10;
int randomNumber = rand.nextInt(maxNumber) + 1;
System.out.println(randomNumber);