import java.util.Random;
public class RandomNumber {
public static void main(String[] args) {
Random random = new Random();
int number = random.nextInt(10);
System.out.printf("The generated random number between 0 to 10 is: %d", number);
}
}
Comments
Leave a comment