Namespaces
Variants

std::uniform_real_distribution<RealType>:: uniform_real_distribution

From cppreference.net
uniform_real_distribution ( ) : uniform_real_distribution ( 0.0 ) { }
(1) (C++11부터)
explicit uniform_real_distribution ( RealType a, RealType b = 1.0 ) ;
(2) (C++11부터)
explicit uniform_real_distribution ( const param_type & params ) ;
(3) (C++11부터)

새로운 분포 객체를 생성합니다.

2) 분포 매개변수로 a b 를 사용합니다.
3) params 를 분포 매개변수로 사용합니다.

매개변수

a - a 분포 매개변수 (최소값)
b - b 분포 매개변수 (최대값)
params - 분포 매개변수 집합

참고 사항

a ≤ b 이고 b - a ≤ std:: numeric_limits < RealType > :: max ( ) 임을 요구합니다.

만약 a == b 인 경우, operator() 오버로드 중 param_type 객체를 받지 않는 버전을 이후에 호출하면 정의되지 않은 동작이 발생합니다.

닫힌 구간 [a,b] 에 대한 분포를 생성하기 위해, std:: nextafter ( b, std:: numeric_limits < RealType > :: max ( ) ) 가 두 번째 매개변수로 사용될 수 있습니다.

결함 보고서

다음의 동작 변경 결함 보고서들은 이전에 발표된 C++ 표준에 소급 적용되었습니다.

DR 적용 대상 게시된 동작 올바른 동작
P0935R0 C++11 default constructor was explicit made implicit