摘要: 6、编写一个产生1000个1到10范围内的随机数的程序。不必保存或打印数字,仅打印每个数被产生了多少次。让程序对10个不同的种子值进行计算。#include<stdio.h>#include<stdlib.h>int sides=10;static int a[10];void f1(int times);int main(void){ int times; int i; extern int a[10]; //可选的引用声明 printf("please input the numbers for times:\n"); scanf("% 阅读全文
posted @ 2013-06-21 12:45 tsembrace 阅读(447) 评论(0) 推荐(0) 编辑