randperms
Version 1.0.0.0 (840 Bytes) by
Po Hu
A modified version of randperm, users have more choice to the returned value.
1.3K Downloads
Updated
12 Aug 2005
No License
Description:
randperms(n) is a random permutation of the integers from 1 to n.
randperms(m,n) when m > n, returns the nth element of randperm(m);
when m < n, returns the permutation of the intergers
from m to n.
randperms(m,n,idx) returns the idx th element of permutated intergers
from m to n.
Cite As
Po Hu (2024). randperms (https://www.mathworks.com/matlabcentral/fileexchange/8276-randperms), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R14SP1
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Random Number Generation in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |