Details

Bernoulli random number generator fills the nxp numeric table with Bernoulli distributed values with the p probability of success on a single trial, where p R, 0 ≤ p ≤ 1.

A variate is called Bernoulli distributed if after a trial it is equal to 1 with the probability of success p and to 0 with the probability 1 - p. The probability distribution is given by:



The cumulative distribution function is as follows:



For more complete information about compiler optimizations, see our Optimization Notice.
Select sticky button color: 
Orange (only for download buttons)