随机数

public class mathrondom {

public static void main(String[] args) {
	for(int i=0;i<10;i++){
	int s=1+(int)(Math.random()*(100-1));
	System.out.println(s);
	}
}

}

原文地址:https://www.cnblogs.com/javalv/p/10914335.html