how to create random combination?

7 ビュー (過去 30 日間)
Abdul
Abdul 2014 年 2 月 23 日
回答済み: Azzi Abdelmalek 2014 年 2 月 23 日
How to create random combination of three integer of length 21. for example ans=1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 and next time answer should be in random order.
  1 件のコメント
the cyclist
the cyclist 2014 年 2 月 23 日
You haven't been clear or complete enough in your description. I can't guess what you want. Please add more details.

サインインしてコメントする。

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 2 月 23 日
repmat(randperm(3),1,7)

カテゴリ

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