Contents Previous Next Subchapters

Generating Random Numbers with Binomial Distribution
Syntax binornd(NtrialssuccessProbabilityrowscols)
See Also unirnd , normrnd , exprnd , poissrnd

Returns an integer matrix containing random elements that are binomially distributed with number of independent Bernoulli trials Ntrials, and with probability successProbability of a single trial with success, where successProbability is between 0 and 1. The value rows is the number of rows and cols is the number of columns in the result. A binomially distributed variate represents the number of successes in Ntrials independent Bernoulli trials with probability of a single trial success successProbability.