A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/algorithm/../header/../experimental/reseed.html below:

std::experimental::reseed - cppreference.com

void reseed();

(1) (library fundamentals TS v2)

void reseed( std::default_random_engine::result_type value );

(2) (library fundamentals TS v2)

Reseeds the per-thread random number engine and any std::uniform_int_distribution instances used by randint.

1) Sets the per-thread engine to an unpredictable state.

2) Seeds the per-thread engine g as if by g.seed(value).

[edit] Parameters value - value of the new seed [edit]

Subsequent calls to randint do not depend on values produced by the per-thread engine prior to calling reseed.

[edit] Example

Possible output:

Random 2-digit decimal numbers: 41 60 56
[edit] See also generates a random integer in the specified range
(function template) [edit]

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4