Hello,
I need to select 30 numbers randomly from 108. I need also that the values are unique.
My approach so far:
allpeople = [];for person = 1:108 allpeople(person) = person;endfor i = 1:30 nrpeople(i) = randi(length(allpeople));end
But this doesn't produce unique numbers
Best Answer