Random order, but equally appearance

10 visualizaciones (últimos 30 días)
B
B el 9 de Abr. de 2019
Respondida: Adam el 9 de Abr. de 2019
If i want a random order of numbers, you can use randi. But how can i get that every number will be equally appear? So for the numbers 1 till 4, a random order but every number at least one time.

Respuesta aceptada

Adam
Adam el 9 de Abr. de 2019
doc randperm

Más respuestas (0)

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