C++复制inline int getnum(int l,int r) { random_device rd; mt19937 gen(rd()); uniform_int_distribution<> num(l,r); return num(gen); }