先定义一个种子srand((unsigned)time(NULL));int k;k=rand()%13+1;就会产生1~13的值
调用rand();如果产生1-13,可以写int a;a = rand()%13+1;
设置时间随机种子