13 template<
typename Value>
15 static_assert(std::is_integral<Value>(),
16 "``Value`` should be integral type.");
17 static_assert(!std::is_same<Value, bool>(),
18 "``Value`` should not be ``bool`` type, "
19 "use ``strategies::Booleans`` instead.");
25 explicit Integers(Value min_value = std::numeric_limits<Value>::min(),
26 Value max_value = std::numeric_limits<Value>::max())
27 : min_value_(min_value),
28 max_value_(max_value) {};
34 static std::random_device random_device;
35 std::uniform_int_distribution<Value> distribution(min_value_, max_value_);
36 return distribution(random_device);
Integers(Value min_value=std::numeric_limits< Value >::min(), Value max_value=std::numeric_limits< Value >::max())
Definition: integers.h:25
Definition: integers.h:14
Value operator()() const override
Definition: integers.h:33