MYRANDINT -- Random Integer Generation
No License
Returns a matrix of random elements drawn uniformly from within a specified set. Sampling can be done with or without replacement. (This function was intended to fill the role of RANDINT in the Comm Toolbox, which I no longer possess. No claims are made for correctness or efficiency.)
Cite As
David Fass (2026). MYRANDINT -- Random Integer Generation (https://www.mathworks.com/matlabcentral/fileexchange/5346-myrandint-random-integer-generation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: Random Integer Generator, Generate uniform pseudo-random integers from linear range.
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | Removed a bug that returned vectors of the wrong orientation. |
