生成1~n之间随机整数_c++

rand() % (high - low + 1) + low;

posted @ 2022-07-08 12:45  douzujun  阅读(68)  评论(0)    收藏  举报