MATLAB: How to create non-repetitive random integers
non-repetitive random integers
Hi,
As the title suggests I want to create non-repetitive random integers but don't know how to… say 70 integers ranging from 1 to 100. is there a straight way to do this?
There's no guarantee that successive calls to randperm will not create repetitions (after all after a while it would have to anyway), so use simply one call, and split it in two:
Best Answer