8万到10万之间随机200组数字?

来源:百度知道 编辑:UC知道 时间:2024/06/17 02:55:52
请直接我给列出来好吗?1楼的对不起,我是菜鸟,我看不懂你说的,还是要谢谢你,

#include<iostream>
#include <stdlib.h>
#include<string>
using namespace std;;

int main()
{
int m,n=0;

srand( (unsigned)time( NULL ) );
bool falg=true;
while(falg)
{m=rand()%999992+8;
cout<<m<<'\t';
++n;
if(n==200)
{cout<<"结束"<<endl;
break;}
}
system("PAUSE");
}

楼上的真强 不过还要加个#include<time.h>哦