#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
//生成 [0 , x] 的随机数
int a = rand() % (x+1) ;
//生成 [x , y] 的随机数
int b = rand() % (y+1-x) + x ;
return 0;
}
06-01
447
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
01-03
8115
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)