Loading

摘要: 众所周知,重复打开相同的可执行文件,想要输出的数不同,往往需要以时间作为随机种子。 如: ```cpp #include int main() { srand(time(0)); int a = rand(); printf("%d\n", a); } ``` 但是,以这种方式,在每 1 秒内重复运 阅读全文
posted @ 2023-07-29 14:34 EdisonBa 阅读(913) 评论(2) 推荐(2) 编辑