##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::discrete_distribution::reset

From cppreference.com
< cpp‎ | numeric‎ | random‎ | discrete distribution

[edit template]

void reset(); |  | (since C++11)

Resets the internal state of the distribution object. After a call to this function, the next call to operator() on the distribution object will not be dependent on previous calls to operator().

### [edit] Parameters

(none)

### [edit] Return value

(none)

### [edit] Complexity

Constant.

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/numeric/random/discrete_distribution/reset&oldid=50928"