Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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