C++复制mt19937 rnd(chrono::steady_clock::now().time_since_epoch().count()); int R(int P) {return rnd() % P + 1;}