public class Utility1
{
public static void main(String[] args)
{
generateRandomNumber(100);
}
public static int generateRandomNumber(int n)
{
System.out.println(n);
return n;
}
}
In output, it is always displaying 100.
I want to display any number between 1 to 100.