bernoulli_distribution::param_type
Store the parameters of the distribution.
struct param_type {
typedef bernoulli_distribution distribution_type;
param_type(double p0 = 0.5);
double p() const;
bool operator==(const param_type& right) const;
bool operator!=(const param_type& right) const;
};
Remarks
This parameter package can be passed to operator() to generate the return value.
Requirements
Header: <random>
Namespace: std