Linear_congruential library in boost

I am trying to use random::linear_congruentialin boost (http://www.boost.org/doc/libs/1_33_1/libs/random/random-generators.html#linear_congruential) to generate uniform random numbers. An ad is defined as:

template<class IntType, IntType a, IntType c, IntType m, IntType val>

Does anyone know what the last parameter means IntType val? It is not documented, and I did not find any link. I configure my settings as follows, but don't understand how to set val:

random::linear_congruential<long, 39373L, 0, 2147483647L, ??> generator;
+3
source share
1 answer

= 1 10000, , val. -, PRNG 10 000- .

+2

Source: https://habr.com/ru/post/1769217/


All Articles