Signature Description Parameters

std::vector<bool>
gen_bernoulli_dist(std::size_t n, const RandGenParams<bool> &params = { });
        
It generates random Boolean values, according to the discrete probability function. The probability of true is:
              ⎧ p if b == true
    P(b|p) =  ⎨
              ⎩ 1 - p if b == fasle
        
It returns the vector of results
Optional parameters to set:
prob_true, seed
n: Number of numeric to generate
params: List of all applicable parameters, see DataFrameTypes.h