Generating random numbers without repitiion
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
S. David
am 29 Mai 2014
Kommentiert: S. David
am 29 Mai 2014
Hello all,
How can I generate, say 10, random numbers uniformly distributed between Nmin and Nmax, without repeating any one of them twice?
Thanks
0 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 29 Mai 2014
Bearbeitet: Azzi Abdelmalek
am 29 Mai 2014
Nmin+rand(1,10)*(Nmax-Nmin)
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!