Random order, but equally appearance

1 view (last 30 days)
B
B on 9 Apr 2019
Answered: Adam on 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.

Accepted Answer

Adam
Adam on 9 Apr 2019
doc randperm

More Answers (0)

Categories

Find more on Random Number Generation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!