#include <iostream>
#include <CTIME>
using namespace std;
const int N_Max = 20;
const int N_Min = 10;
int main()
{
srand()函数产生一个以当前时间开始的随机种子
srand((unsigned)time(NULL));
for (int i = 0; i < 5; i++)
{
int x = N_Min + rand() % (N_Max - N_Min); //[N_Min,N_Max)
cout <<x <<"/n";
}
return 0;
}