How to create non-repetitive random integers
Mostrar comentarios más antiguos
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,
Respuesta aceptada
Más respuestas (2)
Richard Brown
el 23 de Abr. de 2012
randperm(100, 70)
2 comentarios
Mohammad Monfared
el 23 de Abr. de 2012
Richard Brown
el 23 de Abr. de 2012
ah yes, that came in at R2011b
Jan
el 23 de Abr. de 2012
1 voto
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!