语法:

写描述
 <details>
<summary>点击查看折叠代码块</summary>

</details>

我的代码实现

点击查看折叠代码块
#include <ctime>

//随机数种子,随着时间变化生成不同的随机数
srand((unsigned int)time(NULL));

int ret = rand % 100 + 50; //50 - 149

相关文章:

猜你喜欢
相关资源
相似解决方案