Constructors
Synopses
Declared in <absl/random/uniform_int_distribution.h>
Constructs a distribution over the entire range of result_type.
Constructs a distribution from the given parameter set.
explicit
uniform_int_distribution(param_type const& param);
Constructs a distribution over the closed interval [lo, hi].
explicit
uniform_int_distribution(
result_type lo,
result_type hi = (std::numeric_limits<result_type>::max)());
Parameters
Name |
Description |
param |
The parameter set. |
lo |
The lower bound of the closed interval. |
hi |
The upper bound of the closed interval. |
Created with MrDocs