class
std::bernoulli_distribution
- Header
<random>- Scope
std- cppreference
- std::bernoulli_distribution
Synopsis
class bernoulli_distribution;Member types
| Name | Declaration |
|---|---|
param_typeclass · nested | class param_type |
result_typetype alias · member type | = bool |
Member functions
| Name | Declaration |
|---|---|
bernoulli_distributionconstructor · 3 overloads | bernoulli_distribution() +2 more |
maxmember function | result_type max() const |
minmember function | result_type min() const |
operator()operator template · 2 overloads | result_type operator()(URBG& g) +1 more |
pmember function | double p() const |
parammember function · 2 overloads | param_type param() const +1 more |
resetmember function | void reset() |