vc产生随机数

来源:互联网 发布:宿州淘宝招聘信息 编辑:程序博客网 时间:2024/05/18 19:22

产生1到10之间的随机数

int i;srand((unsigned)time(NULL));i=rand()%10+1;


0 0
原创粉丝点击