Unique Random Integer List
Versión 1.0.0.0 (1,13 KB) por
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.
Citar como
Ibraheem Al-Dhamari (2026). Unique Random Integer List (https://la.mathworks.com/matlabcentral/fileexchange/27809-unique-random-integer-list), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2008a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Más información sobre Random Number Generation en Help Center y MATLAB Answers.
Etiquetas
Agradecimientos
Inspiración para: Generate uniform pseudo-random integers from linear range.
Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 1.0.0.0 |
