A RetroSearch Logo

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

Search Query:

Showing content from https://cplusplus.com/reference/random/bernoulli_distribution/p/ below:

public member function

<random>

std::bernoulli_distribution::p
double p() const;

Probability of true

Returns the parameter p associated with the bernoulli_distribution. This parameter represents the probabily that member function operator() returns true.

This parameter is set on construction.



Parameters none

Return value The probability parameter (p) associated with the distribution object.

Complexity Constant.

See also
bernoulli_distribution::(constructor)
Construct bernoulli distribution (public member function)
bernoulli_distribution::param
Distribution parameters (public member function)

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