How to generate random number from Bernoulli distribution?
Show older comments
just like the below command
a=randn(1,1000)
how can we generate random number from bernoulli distribution
Accepted Answer
More Answers (0)
Categories
Find more on Random Number Generation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!