PROGRAM TO GENERATE RANDOM NUMBER

//program to generate random number
public class RandomNum
{
public static void main(String args[])
{
int rnd=(int)(100*Math.random());
System.out.println(“Random number is: “+rnd);
}
}

Leave a Reply

Your email address will not be published. Required fields are marked *