uniform_int_distribution::operator()
Returns a random value.
template<class Engine>
result_type operator()(Engine& eng);
template<class Engine>
result_type operator()(Engine& eng,
const param_type& par0);
Parameters
Engine
The type of the random engine.eng
The random engine.par0
The parameter package used as a source for the random value.
Remarks
The first member operator uses the engine eng as a source of uniformly distributed integral values and returns integral values with each value i in the closed range [min(), max()] occurring with equal probability and values outside that range occurring with probability 0.
The second member function behaves the same, except that it uses the parameters stored in par0.
Requirements
Header: <random>
Namespace: std
See Also
Reference
uniform_int_distribution Class