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