|
Hegel 0.18.3
Property-based testing for C++
|
A random engine whose values Hegel generates. More...
#include <random.h>
A random engine whose values Hegel generates.
Satisfies the C++ UniformRandomBitGenerator named requirement, so it can be used with any <random> distribution.
A drawn HegelRandom prints the values it gives the test, as HegelRandom{.consumed = {...}}: randoms() makes a child region of the printer (Printer::deferred()) where it is drawn, and the engine writes each value there when it is used. In true-random mode it prints its seed, HegelRandom{.seed = N}.