Random Integer Generator

This program quickly outputs n random integers in the specified range from a to b.
ダウンロード: 5.9K
更新 2013/12/23

ライセンスの表示

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.

引用

Edward Zechmann (2024). Random Integer Generator (https://www.mathworks.com/matlabcentral/fileexchange/18443-random-integer-generator), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2007b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersRandom Number Generation についてさらに検索
謝辞

ヒントを得たファイル: MYRANDINT -- Random Integer Generation

ヒントを与えたファイル: 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!
バージョン 公開済み リリース ノート
1.1.0.0

Updated comments to fix error in the no_duplicates input argument description.

1.0.0.0

Added an option to plot the integers. The plot is helpful in visually inspecting the distribution of the output.