Generation of Random Variates
This code package provides a framework for generating random samples of univariate distribution functions. It has an Excel database that currently lists over 870 distributions, their parameters as well as references to source material. Using a GUI, users can select from any of these discrete or continuous distributions, specify parameter values and specify the number of samples desired. The program will graph the samples, the PDF/PMF, CDF and a histogram. These samples may also be saved to a user-named local file. The Excel database is readily extensible and a User Guide is included with the package.
Given that this is the author's first submission to Matlab Central as well as first attempt at a Matlab GUI and that there are just under 2000 files in this package, there are bound to be many bugs. The author welcomes any corrections, additions, comments or suggestions.
Cite As
James Huntley (2026). Generation of Random Variates (https://uk.mathworks.com/matlabcentral/fileexchange/35008-generation-of-random-variates), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Statistics and Machine Learning Toolbox > Probability Distributions and Hypothesis Tests > Continuous Distributions > Normal Distribution >
Tags
Acknowledgements
Inspired by: Special Functions math library, Gaussian Hypergeometric Function, erfz, SpecialFunctions.zip, Generalized Hypergeometric Function, Smooth Differentiation, Computation of Special Functions, Complex scaled complementary error function, Confluent hypergeometric function (Kummer function), Gauss Hypergeometric Function, Simpson's rule for numerical integration
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
