how to create random combination?

12 vues (au cours des 30 derniers jours)
Abdul
Abdul le 23 Fév 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 commentaire
the cyclist
the cyclist le 23 Fév 2014
You haven't been clear or complete enough in your description. I can't guess what you want. Please add more details.

Connectez-vous pour commenter.

Réponses (1)

Azzi Abdelmalek
Azzi Abdelmalek le 23 Fév 2014
repmat(randperm(3),1,7)

Catégories

En savoir plus sur Random Number Generation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by