引入头文件#include <stdlib.h> 设置种子rand(RAND_MAX)生成特定范围的随机数// 生成0到n-1之间的随机数int random_0_to_n_minus_1 = rand() % n;// 生成m到n之间的随机数...