随机化

mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
double rnd(double l, double r){return uniform_real_distribution<double>(l,r)(rng);}
int rnd(int l,int r){return uniform_int_distribution<int>(l,r)(rng);}

 

posted @ 2021-04-22 15:59  _LH2000  阅读(79)  评论(0编辑  收藏  举报