.TH "std::uniform_real_distribution< _RealType >" 3cxx "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::uniform_real_distribution< _RealType > \- Uniform continuous distribution for random numbers\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Classes" .in +1c .ti -1c .RI "struct \fBparam_type\fP" .br .in -1c .SS "Public Types" .in +1c .ti -1c .RI "\fBtypedef\fP _RealType \fBresult_type\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBuniform_real_distribution\fP ()" .br .RI "Constructs a uniform_real_distribution object\&. " .ti -1c .RI "\fBuniform_real_distribution\fP (_RealType __a, _RealType __b=_RealType(1))" .br .RI "Constructs a uniform_real_distribution object\&. " .ti -1c .RI "\fBuniform_real_distribution\fP (\fBconst\fP \fBparam_type\fP &__p)" .br .ti -1c .RI "template<\fBtypename\fP \fB_ForwardIterator\fP , \fBtypename\fP \fB_UniformRandomNumberGenerator\fP > \fBvoid\fP \fB__generate\fP (\fB_ForwardIterator\fP __f, \fB_ForwardIterator\fP __t, \fB_UniformRandomNumberGenerator\fP &\fB__urng\fP)" .br .ti -1c .RI "template<\fBtypename\fP \fB_ForwardIterator\fP , \fBtypename\fP \fB_UniformRandomNumberGenerator\fP > \fBvoid\fP \fB__generate\fP (\fB_ForwardIterator\fP __f, \fB_ForwardIterator\fP __t, \fB_UniformRandomNumberGenerator\fP &\fB__urng\fP, \fBconst\fP \fBparam_type\fP &__p)" .br .ti -1c .RI "template<\fBtypename\fP \fB_UniformRandomNumberGenerator\fP > \fBvoid\fP \fB__generate\fP (\fBresult_type\fP *__f, \fBresult_type\fP *__t, \fB_UniformRandomNumberGenerator\fP &\fB__urng\fP, \fBconst\fP \fBparam_type\fP &__p)" .br .ti -1c .RI "\fBresult_type\fP \fBa\fP () \fBconst\fP" .br .ti -1c .RI "\fBresult_type\fP \fBb\fP () \fBconst\fP" .br .ti -1c .RI "\fBresult_type\fP \fBmax\fP () \fBconst\fP" .br .RI "Returns the inclusive upper bound of the distribution range\&. " .ti -1c .RI "\fBresult_type\fP \fBmin\fP () \fBconst\fP" .br .RI "Returns the inclusive lower bound of the distribution range\&. " .ti -1c .RI "template<\fBtypename\fP \fB_UniformRandomNumberGenerator\fP > \fBresult_type\fP \fBoperator()\fP (\fB_UniformRandomNumberGenerator\fP &\fB__urng\fP)" .br .RI "Generating functions\&. " .ti -1c .RI "template<\fBtypename\fP \fB_UniformRandomNumberGenerator\fP > \fBresult_type\fP \fBoperator()\fP (\fB_UniformRandomNumberGenerator\fP &\fB__urng\fP, \fBconst\fP \fBparam_type\fP &__p)" .br .ti -1c .RI "\fBparam_type\fP \fBparam\fP () \fBconst\fP" .br .RI "Returns the parameter set of the distribution\&. " .ti -1c .RI "\fBvoid\fP \fBparam\fP (\fBconst\fP \fBparam_type\fP &\fB__param\fP)" .br .RI "Sets the parameter set of the distribution\&. " .ti -1c .RI "\fBvoid\fP \fBreset\fP ()" .br .RI "Resets the distribution state\&. " .in -1c .SS "Friends" .in +1c .ti -1c .RI "bool \fBoperator==\fP (\fBconst\fP \fBuniform_real_distribution\fP &\fB__d1\fP, \fBconst\fP \fBuniform_real_distribution\fP &\fB__d2\fP)" .br .RI "Return true if two uniform real distributions have the same parameters\&. " .in -1c .SH "Detailed Description" .PP .SS "template<\fBtypename\fP _RealType = double> .br class std::uniform_real_distribution< _RealType >"Uniform continuous distribution for random numbers\&. A continuous random distribution on the range [min, max) with equal probability throughout the range\&. The URNG should be real-valued and deliver number in the range [0, 1)\&. .SH "Member Typedef Documentation" .PP .SS "template<\fBtypename\fP _RealType = double> \fBtypedef\fP _RealType \fBstd::uniform_real_distribution\fP< _RealType >::result_type" The type of the range of the distribution\&. .SH "Constructor & Destructor Documentation" .PP .SS "template<\fBtypename\fP _RealType = double> \fBstd::uniform_real_distribution\fP< _RealType >::uniform_real_distribution ()\fC [inline]\fP" .PP Constructs a uniform_real_distribution object\&. The lower bound is set to 0\&.0 and the upper bound to 1\&.0 .SS "template<\fBtypename\fP _RealType = double> \fBstd::uniform_real_distribution\fP< _RealType >::uniform_real_distribution (_RealType __a, _RealType __b = \fC_RealType(1)\fP)\fC [inline]\fP, \fC [explicit]\fP" .PP Constructs a uniform_real_distribution object\&. .PP \fBParameters\fP .RS 4 \fI__a\fP [IN] The lower bound of the distribution\&. .br \fI__b\fP [IN] The upper bound of the distribution\&. .RE .PP .SH "Member Function Documentation" .PP .SS "template<\fBtypename\fP _RealType = double> \fBresult_type\fP \fBstd::uniform_real_distribution\fP< _RealType >::max () const\fC [inline]\fP" .PP Returns the inclusive upper bound of the distribution range\&. .SS "template<\fBtypename\fP _RealType = double> \fBresult_type\fP \fBstd::uniform_real_distribution\fP< _RealType >::min () const\fC [inline]\fP" .PP Returns the inclusive lower bound of the distribution range\&. .SS "template<\fBtypename\fP _RealType = double> template<\fBtypename\fP \fB_UniformRandomNumberGenerator\fP > \fBresult_type\fP \fBstd::uniform_real_distribution\fP< _RealType >::operator() (\fB_UniformRandomNumberGenerator\fP & __urng)\fC [inline]\fP" .PP Generating functions\&. .PP References \fBstd::uniform_real_distribution< _RealType >::operator()()\fP\&. .PP Referenced by \fBstd::uniform_real_distribution< _RealType >::operator()()\fP\&. .SS "template<\fBtypename\fP _RealType = double> \fBparam_type\fP \fBstd::uniform_real_distribution\fP< _RealType >::param () const\fC [inline]\fP" .PP Returns the parameter set of the distribution\&. .SS "template<\fBtypename\fP _RealType = double> \fBvoid\fP \fBstd::uniform_real_distribution\fP< _RealType >::param (\fBconst\fP \fBparam_type\fP & __param)\fC [inline]\fP" .PP Sets the parameter set of the distribution\&. .PP \fBParameters\fP .RS 4 \fI__param\fP The new parameter set of the distribution\&. .RE .PP .SS "template<\fBtypename\fP _RealType = double> \fBvoid\fP \fBstd::uniform_real_distribution\fP< _RealType >::reset ()\fC [inline]\fP" .PP Resets the distribution state\&. Does nothing for the uniform real distribution\&. .SH "Friends And Related Symbol Documentation" .PP .SS "template<\fBtypename\fP _RealType = double> bool \fBoperator\fP== (\fBconst\fP \fBuniform_real_distribution\fP< _RealType > & __d1, \fBconst\fP \fBuniform_real_distribution\fP< _RealType > & __d2)\fC [friend]\fP" .PP Return true if two uniform real distributions have the same parameters\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.