Generate uniform pseudo-random integers from linear range.

RAND_INT(R,N) returns an n-by-n matrix containing pseudo-random integer values from range R.

Descargar
Descargar

Ahora está siguiendo esta publicación

Citar como

DS (2026). Generate uniform pseudo-random integers from linear range. (https://la.mathworks.com/matlabcentral/fileexchange/35324-generate-uniform-pseudo-random-integers-from-linear-range), MATLAB Central File Exchange. Recuperado .

Categorías

Más información sobre Random Number Generation en Help Center y MATLAB Answers.

Información general

Compatibilidad con la versión de MATLAB

  • Compatible con cualquier versión

Compatibilidad con las plataformas

  • Windows
  • macOS
  • Linux
Versión Publicado Notas de la versión Action
1.4.0

Modified code included as detailed in previous update.

Descargar
1.3.0

Added a check for imaginary and non-integer range specifications. Thanks to Travis B for pointing out this edge-case behavior.

Descargar
1.2.0

Fixed help format to accommodate LOOKFOR queries.

Descargar
1.1.0

Thanks to Jan Simon for suggesting the use of numel instead of abusing the size function (see comments).

Descargar
1.0.0

Descargar