Random Barnoulli Variable

This function generates random Bernoulli variables.
196 Downloads
Updated 23 Apr 2012

View License

There is often a need to generated a random variable that has Bernoulli distribution. This function generates Bernoulli random variables 0 and 1.

Cite As

Alex Dytso (2026). Random Barnoulli Variable (https://in.mathworks.com/matlabcentral/fileexchange/36320-random-barnoulli-variable), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Random Number Generation in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0