import java.util.Random;
import java.util.Scanner;
public class Demo01Random
{
public static void main(String[] args)
{
Scanner sc =new Scanner(System.in);
//1-100
Random myRandom = new Random();
int i = myRandom.nextInt(100)+1;
System.out.println(i);
}
}
|
|