Random Barnoulli Variable

This function generates random Bernoulli variables.

You are now following this Submission

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://nl.mathworks.com/matlabcentral/fileexchange/36320-random-barnoulli-variable), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Random Number Generation in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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