3#ifndef TETL_RANDOM_UNIFORM_INT_DISTRIBUTION_HPP
4#define TETL_RANDOM_UNIFORM_INT_DISTRIBUTION_HPP
11template <
typename IntType =
int>
26 [[nodiscard]]
constexpr auto a() const noexcept ->
result_type {
return _min; }
28 [[nodiscard]]
constexpr auto b() const noexcept ->
result_type {
return _max; }
32 return (lhs._min == rhs._min) and (lhs._max == rhs._max);
59 [[nodiscard]]
constexpr auto a() const ->
result_type {
return _param.a(); }
61 [[nodiscard]]
constexpr auto b() const ->
result_type {
return _param.b(); }
67 constexpr auto reset() ->
void { (void)
this; }
69 template <
typename URBG>
72 return (*
this)(g, _param);
75 template <
typename URBG>
78 auto const random = g();
79 auto const range =
static_cast<decltype(g())
>(parm.b() - parm.a());
85 return x.param() == y.param();
Definition adjacent_find.hpp:8
static constexpr auto max() noexcept
Definition numeric_limits.hpp:21