Generating random numbers without repitiion
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
S. David
il 29 Mag 2014
Commentato: S. David
il 29 Mag 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 Commenti
Risposta accettata
Azzi Abdelmalek
il 29 Mag 2014
Modificato: Azzi Abdelmalek
il 29 Mag 2014
Nmin+rand(1,10)*(Nmax-Nmin)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Random Number Generation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!