#include
#include
#include
#include
using namespace std;
unsigned t[300],temp;
void creat_rand() //产生随机数的函数
{
long i=1;
cout<<"为您产生的随机数如下:"<
srand(time(0)); //用此函数设定种子值,使每次产生的随机数不一样
for(i=1;i<21;)
{
temp=(rand()%10000+1000);
if(temp>999 && temp<=9999)
{
t[i]=temp;
cout<<"第"<
if(i%5==0)
cout<
i++;
}
}
}