how to create random combination?

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 日

0 投票

repmat(randperm(3),1,7)

カテゴリ

ヘルプ センター および File ExchangeRandom Number Generation についてさらに検索

質問済み:

2014 年 2 月 23 日

回答済み:

2014 年 2 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by