Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool is_horizontal()
- {
- static std::uniform_real_distribution<double> rng{ 0,1 };
- static std::random_device dev{};
- return rng(dev) > 0.5;
- }
- bool is_vertical()
- {
- static std::uniform_real_distribution<double> rng{ 0,1 };
- static std::random_device dev{};
- return rng(dev) < 0.5;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement