How to create non-repetitive random integers
Ältere Kommentare anzeigen
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,
Akzeptierte Antwort
Weitere Antworten (2)
Richard Brown
am 23 Apr. 2012
randperm(100, 70)
2 Kommentare
Mohammad Monfared
am 23 Apr. 2012
Richard Brown
am 23 Apr. 2012
ah yes, that came in at R2011b
Jan
am 23 Apr. 2012
1 Stimme
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!