다음을 통해 공유


random_device Class

외부 장치에서 임의의 시퀀스를 생성합니다.

class random_device {
public:
    typedef unsigned int result_type;
    explicit random_device(const std::string& token = /* implementation defined */);
    result_type min() const;
    result_type max() const;
    double entropy() const;
    result_type operator()();
private:
    random_device(const random_device&) = delete;
    void operator=(const random_device&) = delete;
    };

설명

명확 하지 않은 외부 장치에서 난수는 원본 클래스를 설명합니다.이 구현에서는 기본적으로 생성 되는 값 명확 하지 않습니다.닫힌된 범위에 골고루 분산 [0, 65535].

요구 사항

헤더: <random>

네임 스페이스: std

참고 항목

참조

<random>

random_device::entropy

random_device::operator()

random_device::random_device