随笔分类 -  random

用一维数组存30个0~100的数并计算平均数,0~100的数由Math类的randown()方法随机生成。
摘要:public class ArrayAndRan{ public static void main(String[] args){ int a =0; int num[] = new int[30]; for(int i=0;i<num.length;i++){... 阅读全文
posted @ 2018-09-28 14:31 古往今夕 阅读(378) 评论(0) 推荐(0)