Get a pseudorandom value.
| 43 | |
| 44 | // Get a pseudorandom value. |
| 45 | NativeT get() { |
| 46 | std::uniform_real_distribution<> distribution; |
| 47 | return static_cast<NativeT>(min_ + |
| 48 | (max_ - min_) * distribution(generator_)); |
| 49 | } |
| 50 | |
| 51 | private: |
| 52 | NativeT min_; |
no outgoing calls
no test coverage detected