Random Numbers from a Discrete Distribution
Simple algorithm to generate random numbers from a user-defined discrete probability distribution.
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Cite As
Tristan Ursell (2026). Random Numbers from a Discrete Distribution (https://au.mathworks.com/matlabcentral/fileexchange/34101-random-numbers-from-a-discrete-distribution), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: Random Sample from Discrete PDF
General Information
- Version 1.7.0 (2.07 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux