| 34 | } |
| 35 | |
| 36 | bool PseudoRandomGenerator::RandomBool() { |
| 37 | return static_cast<bool>(std::uniform_int_distribution<>(0, 1)(mt_)); |
| 38 | } |
| 39 | |
| 40 | uint32_t PseudoRandomGenerator::RandomPercentage() { |
| 41 | // We use 101 because we want a result in the closed interval [0, 100], and |
no outgoing calls