Hi,
I'm using randperm in a loop that's meant to generate unique random three-digit numbers to fill a 5×5 matrix, r, like this:
for i = 1:length(r)r(1:5,i) = (randperm(900,5) + 99);end
My question is:
Is there a possibility of repeating a number given the function is being called 5 times, once for each column? I want each number to be unique.
Thanks,
Veena
Best Answer