随机数生成
import org.apache.commons.math3.distribution.FDistribution; public class Demo { public static void main(String[] args) { //创建一个F分布对象,参数为自由度 FDistribution fd = new FDistribution(10,2); //当α=0.05时,参数为1-α=0.95 double v = fd.inverseCumulativeProbability(0.95); //输出值 System.out.println(v); } }