| void set_counter( const std::array<result_type, n>& c ); |
(since C++26) | |
Sets the counter of the random-number engine.
- For each integer
kin[0,n), sets Xk to cn-1-k mod 2w
. - The value of
jis set ton - 1.[1]
- ↑ As
jis being set ton - 1, the next state transition always generates new random values.
Parameters
| c | - | counter sequence to use to set the counter |
Complexity
O(n).
See also
| constructs the engine (public member function) | |
| sets the current state of the engine (public member function) |
Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.