标签:ring ber opera random ati sys 数学 system string
public class Main {
public static void main(String[] ages) {
String[] operate = new String[]{"+", "-", "×", "÷"};
int[] numbers = new int[100];
for (int i = 1; i <= 100; i++) {
numbers[i - 1] = i;
}
Random r = new Random();
for (int i = 0; i < 300; i++){
System.out.println(numbers[r.nextInt(100)] + operate[r.nextInt(4)] + numbers[r.nextInt(100)] + "=");
}
}
}
标签:ring ber opera random ati sys 数学 system string
原文地址:http://www.cnblogs.com/weijing44/p/6542611.html