随机数的产生
#include "iostream"
#include "time.h"
using namespace std;
void main()
{
int count=0;
srand((unsigned)time(NULL));
for (int i=0;i <10;i++)
{
count++;
cout << "No " <<count << "= " <<rand() << " ";
if (!(count%5))
cout <<endl;
}
}