#include<time.h>
void main(){
time_t ts;
unsigned int num = time(&ts);
srand(num);//随机数
int data = rand();
}
取随机数c
最新推荐文章于 2024-06-26 18:11:17 发布
#include<time.h>
void main(){
time_t ts;
unsigned int num = time(&ts);
srand(num);//随机数
int data = rand();
}