randinrc returns a pseudo random (n x m) array R such that
- R contains integers in (1:range)
- for each column Rj = R(:,j) two elements of Rj that has the same value are separated by at least minstep in their positions
Optionally drawing with and without replacement cen be specified by user
Cite As
Bruno Luong (2026). randinrc (https://se.mathworks.com/matlabcentral/fileexchange/133192-randinrc), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2023a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
