Random Integer Generator
The program quickly outputs n random integers in the range from a to b. The integers are drawn from a uniform distribution to make selection of integers equally probable.
This program is intended to be especially quick with very large ranges of integers and selecting only a very small number of those integers.
User specifies whether output is sorted or random order.
User specifies whether to remove duplicate integers or to allow duplicate integers.
Citar como
Edward Zechmann (2024). Random Integer Generator (https://www.mathworks.com/matlabcentral/fileexchange/18443-random-integer-generator), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Etiquetas
Agradecimientos
Inspirado por: MYRANDINT -- Random Integer Generation
Inspiración para: 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!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.