Distribution of Random variables

Methods to generate different random variates
324 Downloads
Updated 21 May 2017

View License

1. Uniform random variate
2. Exponential random variate
3. Erlang random variate
4. Bernoulli random variate
5. Binomial random variate
6. Geometric random variate
7. Negative Binomial random variate
8. Normal random variate
Pseudorandom_number_generators
A linear congruential generator (LCG) is an algorithm that yields a sequence of pseudo-randomized numbers calculated with a discontinuous piecewise linear equation. The method represents one of the oldest and best-known pseudorandom number generator algorithms.

References:
https://en.wikipedia.org/wiki/Linear_congruential_generator
https://en.wikipedia.org/wiki/Inverse_transform_sampling
https://en.wikipedia.org/wiki/Box-Muller_transform

Cite As

Bhartendu (2024). Distribution of Random variables (https://www.mathworks.com/matlabcentral/fileexchange/63043-distribution-of-random-variables), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016a
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