How to create non-repetitive random integers
Afficher commentaires plus anciens
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,
Réponse acceptée
Plus de réponses (2)
Richard Brown
le 23 Avr 2012
randperm(100, 70)
2 commentaires
Mohammad Monfared
le 23 Avr 2012
Richard Brown
le 23 Avr 2012
ah yes, that came in at R2011b
Jan
le 23 Avr 2012
1 vote
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!