.TH "std::linear_congruential_engine< _UIntType, __a, __c, __m >" 3cxx "Wed Jan 31 2018" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::linear_congruential_engine< _UIntType, __a, __c, __m > \- .SH SYNOPSIS .br .PP .SH "Detailed Description" .PP .SS "templateclass std::linear_congruential_engine< _UIntType, __a, __c, __m >" A model of a linear congruential random number generator\&. A random number generator that produces pseudorandom numbers via linear function: \[ x_{i+1}\leftarrow(ax_{i} + c) \bmod m \] .PP The template parameter \fC_UIntType\fP must be an unsigned integral type large enough to store values up to (__m-1)\&. If the template parameter \fC__m\fP is 0, the modulus \fC__m\fP used is std::numeric_limits<_UIntType>::max() plus 1\&. Otherwise, the template parameters \fC__a\fP and \fC__c\fP must be less than \fC__m\fP\&. .PP The size of the state is $1$\&. .PP Definition at line 243 of file random\&.h\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.