Unique Random Integer List
バージョン 1.0.0.0 (1.13 KB) 作成者:
Ibraheem Al-Dhamari
A simple function that produce unique random Integer List
Usage r=myrand(a,b)
a and b is the range, for example if we want to generate random integers between 370 and 55780 we call the function :
r=myrand(370,55780)
We can also limit the list as we need. for example if we want only 10 random integers between 370 and 55780 we use:
r10=r(1:10;
It is also useful for scrambling an array randomly.
引用
Ibraheem Al-Dhamari (2025). Unique Random Integer List (https://www.mathworks.com/matlabcentral/fileexchange/27809-unique-random-integer-list), MATLAB Central File Exchange. に取得済み.
MATLAB リリースの互換性
作成:
R2008a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linuxカテゴリ
Help Center および MATLAB Answers で Random Number Generation についてさらに検索
タグ
謝辞
ヒントを与えたファイル: Generate uniform pseudo-random integers from linear range.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!バージョン | 公開済み | リリース ノート | |
---|---|---|---|
1.0.0.0 |