java to display ramdom number code example
Example 1: random java
import java.util.Random();
Random <name> = new Random();
<variable> = <name>.nextInt(<excuslive top limit>);
Example 2: how to generate random number in java
double x = (Math.random()*((max-min)+1))+min;