W3cubDocs

/C++

std::uniform_int_distribution::uniform_int_distribution

explicit uniform_int_distribution( IntType a = 0, 
                                   IntType b = std::numeric_limits<IntType>::max() );
(1) (since C++11)
explicit uniform_int_distribution( const param_type& params );
(2) (since C++11)

Constructs new distribution object. The first version uses a and b as the distribution parameters, the second version uses params as the distribution parameters.

The behavior is undefined if a>b.

Parameters

a - the a distribution parameter (minimum value)
b - the b distribution parameter (maximum value)
params - the distribution parameter set

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/numeric/random/uniform_int_distribution/uniform_int_distribution