Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef RANDOM_HPP
- #define RANDOM_HPP
- #include <random>
- namespace random
- {
- std::random_device rd;
- uint32_t seed_val;
- int randInt(int a, int b)
- {
- std::mt19937 gen(rd());
- std::uniform_int_distribution <> dist(a, b);
- return dist(gen);
- }
- };
- #endif // RANDOM_HPP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement