#include <iostream>
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
using namespace std;
int main()
{
int seek=time(NULL);
srand(seek);
//或写成srand(time(NULL));
printf("%d\n",rand());
return 0;
}
随机函数
最新推荐文章于 2024-05-22 09:40:14 发布