语法:
写描述 <details> <summary>点击查看折叠代码块</summary> </details>
我的代码实现
#include <ctime> //随机数种子,随着时间变化生成不同的随机数 srand((unsigned int)time(NULL)); int ret = rand % 100 + 50; //50 - 149