标签:io os for c ios br include l null
#include <stdlib.h>
#include <iostream.h>
#include <time.h>
void main()
{
srand( (unsigned)time( NULL ) );
for(int i=0;i<100000;i++)
{
cout<<rand()<<endl;
}
}
rand()*x表示生成0-x的数
标签:io os for c ios br include l null
原文地址:http://www.cnblogs.com/jamsbwo/p/4100272.html