import java.util.Random;
import java.util.Scanner;
public class GuessNumber2{
public static void main(String[] args) {
/*Random r = new Random();
int x = r.nextInt(100);
System.out.println(x);*/
Random r = new Random();
int randomNumber = r.nextInt(100)+1;
System.out.println(randomNumber);
Scanner sc = new Scanner(System.in);
int y = sc.nextInt();
System.out.println(y);
}
}
|
|