how to create random combination?

7 visualizaciones (últimos 30 días)
Abdul
Abdul el 23 de Feb. de 2014
Respondida: Azzi Abdelmalek el 23 de Feb. de 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 comentario
the cyclist
the cyclist el 23 de Feb. de 2014
You haven't been clear or complete enough in your description. I can't guess what you want. Please add more details.

Iniciar sesión para comentar.

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 23 de Feb. de 2014
repmat(randperm(3),1,7)

Categorías

Más información sobre Random Number Generation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by