Guest User

Untitled

a guest
Dec 11th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. class Rand_int {
  2. public:
  3. Rand_int(int low, int high): dist{low, high} {}
  4. int operator()() { return dist(re); }
  5. private:
  6. std::random_device r;
  7. std::default_random_engine re{r()};
  8. std::uniform_int_distribution<> dist;
  9.  
  10. };
Add Comment
Please, Sign In to add comment