#include<iostream>
#include<time.h>
#include<bits.h>
using namespace std;
const int maxn=5;
int main(){
int a;
srand(time(0));
for (int i=1;i<=maxn;i++){
a=rand()%100;
cout<<a<<"\n";
}
return 0;
}
编程实现随机数生成,将随机数保存到数组中
最新推荐文章于 2023-07-28 21:16:25 发布