/*
import java.util.Random;
public class Stochastic{
//求随机数
public static void main(String[] args){
Random XX=new Random();
int number=XX.nextInt(100); //100为随机数的范围
System.out.println("随机数为:"+number);
}
}
*/
public class Stochastic{
//求随机数
public static void main(String[] args){
int number=(int)(Math.random()*100); //强制转换为int型
System.out.println("随机数为:"+number);
}
}