Unique Random Integer List

A simple function that produce unique random Integer List
835.0 次下载
更新时间 2010/5/31

查看许可证

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 (2024). 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 CenterMATLAB Answers 中查找有关 Random Number Generation 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0