Write a program to Generate Random Number in Java.

 

Output: