how to create random combination?

11 visualizzazioni (ultimi 30 giorni)
Abdul
Abdul il 23 Feb 2014
Risposto: Azzi Abdelmalek il 23 Feb 2014
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 Commento
the cyclist
the cyclist il 23 Feb 2014
You haven't been clear or complete enough in your description. I can't guess what you want. Please add more details.

Accedi per commentare.

Risposte (1)

Azzi Abdelmalek
Azzi Abdelmalek il 23 Feb 2014
repmat(randperm(3),1,7)

Categorie

Scopri di più su Random Number Generation in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by