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://jp.mathworks.com/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

ダウンロード