##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::geometric_distribution::max

From cppreference.com
< cpp‎ | numeric‎ | random‎ | geometric 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/geometric_distribution/max&oldid=50954"