binornd

Version 1.0.0 (1.22 KB) by Binlin Wu
Generate random numbers from binomial distributions
84 Downloads
Updated 2 Apr 2021

View License

r = binornd(n,p)
r = binornd(n,p,sz1)
r = binornd(n,p,sz1,sz2,...)

Generates random numbers from the binomial distribution specified by
the number of trials n and the probability of success for each trial p.
sz1,sz2,...: size of the output matrix

Cite As

Binlin Wu (2026). binornd (https://uk.mathworks.com/matlabcentral/fileexchange/89724-binornd), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0