std::experimental::reseed - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::experimental::reseed

From cppreference.com
< cpp‎ | experimental

Defined in header `<experimental/random>` |  |
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] Remarks

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

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

randint | generates a random integer in the specified range (function template) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/experimental/reseed&oldid=81728"
Category:

- Todo no example