(Python/MATLAB) How to generate Bivariate (or multivariate) BERNOULLI Distributed Samples?

284 Views Asked by At

I am trying to generate samples of Bivariate/Multivariate Bernoulli Distributions in Python or MATLAB. How to go about it?

Given: Mean of the distribution and the Number of samples to be generated.

Any inbuilt functions or libraries that can help me in this?