Random order, but equally appearance

2 visualizzazioni (ultimi 30 giorni)
B
B il 9 Apr 2019
Risposto: Adam il 9 Apr 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.

Risposta accettata

Adam
Adam il 9 Apr 2019
doc randperm

Più risposte (0)

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