##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::uniform_int_distribution::max

From cppreference.com
< cpp‎ | numeric‎ | random‎ | uniform int distribution

[edit template]

result_type max() const; |  | (since C++11)

Returns the maximum value potentially generated by the distribution.

### [edit] Parameters

(none)

### [edit] Return value

The maximum value potentially generated by the distribution.

### [edit] Complexity

Constant.

### [edit] See also

min | returns the minimum potentially generated value (public member function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/numeric/random/uniform_int_distribution/max&oldid=51041"