标签:util ati rand str static out exti ring next
import java.util.Random;
public class random {
public static void main(String[] args) {
Random ran=new Random();
int a=5;
int b=100;
int ran1=ran.nextInt(b-a)+a;
System.out.println(ran1);
}
}
标签:util ati rand str static out exti ring next
原文地址:https://www.cnblogs.com/otakus/p/12165884.html