uniform_int_distribution Class
정수를 균일 한 분포를 생성합니다.
template<class IntType = int>
class uniform_int_distribution {
public:
typedef IntType result_type;
struct param_type;
explicit uniform_int_distribution(result_type min0 = 0,
result_type max0 = std::numeric_limits<IntType>::max());
explicit uniform_int_distribution(const param_type& par0);
result_type a() const;
result_type b() const;
param_type param() const;
void param(const param_type& par0);
result_type min() const;
result_type max() const;
void reset();
template<class Engine>
result_type operator()(Engine& eng);
template<class Engine>
result_type operator()(Engine& eng,
const param_type& par0);
private:
result_type stored_min; // exposition only
result_type stored_max; // exposition only
};
매개 변수
- IntType
정수 결과 형식입니다.
설명
템플릿 클래스 더불어는 메일 는 사용자가 지정한 정수 계열 형식으로 균일 하 게 분포의 값을 생성 합니다.
요구 사항
헤더: <random>
네임 스페이스: std
참고 항목
참조
uniform_int_distribution::operator()
uniform_int_distribution::param