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.

下载
下载

您现在正在关注此提交

引用格式

DS (2026). Generate uniform pseudo-random integers from linear range. (https://ww2.mathworks.cn/matlabcentral/fileexchange/35324-generate-uniform-pseudo-random-integers-from-linear-range), MATLAB Central File Exchange. 检索时间: .

类别

在 Help Center 和 MATLAB Answers 中查找有关 Random Number Generation 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.4.0

Modified code included as detailed in previous update.

下载
1.3.0

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

下载
1.2.0

Fixed help format to accommodate LOOKFOR queries.

下载
1.1.0

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

下载
1.0.0

下载