Generating random numbers without repitiion
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Azzi Abdelmalek
le 29 Mai 2014
Modifié(e) : Azzi Abdelmalek
le 29 Mai 2014
Nmin+rand(1,10)*(Nmax-Nmin)
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!