How To Generate two Non Repeating Random integers from 2 to 6?

 採用された回答

Daniel M
Daniel M 2019 年 11 月 5 日

1 投票

x = 2:6;
y = x(randperm(length(x),2));

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

2019 年 11 月 5 日

回答済み:

2019 年 11 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by