フィルターのクリア

Generate repeatable random integers within a fixed range

1 回表示 (過去 30 日間)
nabilah shuhaimi
nabilah shuhaimi 2021 年 12 月 1 日
回答済み: Chunru 2021 年 12 月 1 日
I want to generate 4 random integers from 4 to 11. The integers are repeatable

回答 (1 件)

Chunru
Chunru 2021 年 12 月 1 日
a = randi([4 11], 4, 1)
a = 4×1
10 4 10 8

カテゴリ

Help Center および File ExchangeRandom Number Generation についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by