/** * Created by yang.jin on 13/12/2016. */ public class RandomRouter { public static int totalSp=3; public static void main(String[] args){ double random=0.0,sum=0.0; double a[]=new doub
JAVA 生成n个数,使其和为1
最新推荐文章于 2023-02-13 20:14:47 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
/** * Created by yang.jin on 13/12/2016. */ public class RandomRouter { public static int totalSp=3; public static void main(String[] args){ double random=0.0,sum=0.0; double a[]=new doub