You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This file contains various functions that generate random variables using two methods: inverse method and acceptance-rejection method.
Random variables from following distributions are included:
Continuous uniform distribution;
Exponential distribution;
Standard normal distribution;
Poisson distribution;
Generalized Pareto distribution;
Bernoulli distribution;
Binomial distribution;
Beta distribution;
Gamma distribution;
Discrete geometric distribution;
A specified discrete distribution.
Cite As
Yiming Huang (2026). Simulation of Random Variables - Numerical Method (https://www.mathworks.com/matlabcentral/fileexchange/55631-simulation-of-random-variables-numerical-method), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (3.19 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
