bhupixb

Random Number Generator

Mar 28th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. int rand(int l, int r){
  2. static mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
  3. uniform_int_distribution<int> uid(l, r); return uid(rng);
  4. }
Add Comment
Please, Sign In to add comment