How to create non-repetitive random integers
Show older comments
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?
thanks,
Accepted Answer
More Answers (2)
Richard Brown
on 23 Apr 2012
randperm(100, 70)
2 Comments
Mohammad Monfared
on 23 Apr 2012
Richard Brown
on 23 Apr 2012
ah yes, that came in at R2011b
Jan
on 23 Apr 2012
1 vote
Categories
Find more on Logical 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!