#include <stdlib.h>
#include <iostream>
#include <ctime>
using namespace std;
void Test()
{
int ran_num = 0;
cout<<"不指定seed, ";
for(int i=0; i<10;i++)
{
ran_num = rand()%6;
cout<<ran_num<<" ";
}//每次运行都将输出:5,5,4,4,5,4,0,0,4,2
srand(1);
cout<<"\n指定seed为1, ";
for(int i=0; i<10;i++)
{
ran_num = rand()%6;
cout<<ran_num<<" ";
}//每次运行都将输出:5,5,4,4,5,4,0,0,4,2
srand(6);
cout<<"\n指定seed为6, ";
for(int i=0; i<10;i++)
{
ran_num = rand()%6;
cout<<ran_num<<" ";
}//每次运行都将输出:5,5,4,4,5,4,0,0,4,2
srand((unsigned)time(NULL));
cout<<"\n指定seed当前系统时间, ";
for(int i=0; i<10;i++