binornd

Generate random numbers from binomial distributions

You are now following this Submission

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://in.mathworks.com/matlabcentral/fileexchange/89724-binornd), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0