Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::subtract_with_carry_engine<UIntType,w,s,r>::operator()

Advances the state of the engine, and generates a pseudo-random value from the new state.

NotebookLM
result_type operator()();
(since C++11)

Advances the state of the engine, and generates a pseudo-random value from the new state.

Return value

A pseudo-random number in [min(), max()].

Complexity

Amortized constant.

See also

advances the engine's state by a specified amount
(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.