Random Barnoulli Variable

This function generates random Bernoulli variables.
195 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 (2024). Random Barnoulli Variable (https://www.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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0