uniform_int Class
정수를 균일 한 분포를 생성합니다.TR1 호환성을 유지 합니다.대신 uniform_int_distribution Class를 사용하십시오.
template<class IntType = int>
class uniform_int {
public:
typedef IntType input_type;
typedef IntType result_type;
explicit uniform_int(result_type min0 = 0, result_type max0 = 9);
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, result_type n);
private:
result_type stored_min; // exposition only
result_type stored_max; // exposition only
};
매개 변수
- IntType
정수 결과 형식입니다.
설명
템플릿 클래스 생성 값을 사용자가 지정한 정수 계열 형식으로 균일 하 게 분포는 분포를 설명 합니다.
요구 사항
헤더: <random>
네임 스페이스: std