|
TTS v4.1.0
The Tiny Test System
|
Generates random values between two bounds. More...
Generates random values between two bounds.
The constructor takes the lower bound, then the upper bound. Each value is drawn by tts::random_value, uniformly with both bounds included for an integral type, and log-uniformly for a floating-point type. In a build without NDEBUG, a negative bound for an unsigned type stops the run on an assertion.
| Mx | Type of the upper bound |
| Mn | Type of the lower bound |
Public Types | |
| using | random_type = void |
| Marks tts::randoms and the classes derived from it for tts::is_randoms. | |
Public Member Functions | |
| template<typename D> | |
| void | check (tts::type< D >) const |
| Stops on a negative bound when D is an unsigned type. | |