RandBernoulli(probability,number) 
Top Previous Next 
Simulates number Bernoulli trials where the probability of success in each trial is probability.
Probabilities are expressed as decimal values between 0 and 1.
Bernoulli trials can result in either success or failure, represented by 1 and 0 respectively. The RandBernoulli function simulates Bernoulli trials.
RandBernoulli(0.3,30) might generate 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 0, 1
Note: If you type decimals using a comma (eg 3,2) you should enter this formula as RandBernoulli(0,3; 30)  using the ; as a separator
