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