public class Randint {
public static void main(String[] args) {
while(1==1){
Scanner input=new Scanner(System.in);
System.out.print("请输入最小数:");
int a=input.nextInt();
double aa=a/10;
System.out.print("请输入最大数:");
int b=input.nextInt();
Random rand=new Random();
int c=rand.nextInt(b-a+1)+a;
System.out.println(c);
}
}
}
public static void main(String[] args) {
while(1==1){
Scanner input=new Scanner(System.in);
System.out.print("请输入最小数:");
int a=input.nextInt();
double aa=a/10;
System.out.print("请输入最大数:");
int b=input.nextInt();
Random rand=new Random();
int c=rand.nextInt(b-a+1)+a;
System.out.println(c);
}
}
}