Generating random numbers without repitiion
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
S. David
el 29 de Mayo de 2014
Comentada: S. David
el 29 de Mayo de 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 comentarios
Respuesta aceptada
Azzi Abdelmalek
el 29 de Mayo de 2014
Editada: Azzi Abdelmalek
el 29 de Mayo de 2014
Nmin+rand(1,10)*(Nmax-Nmin)
Más respuestas (0)
Ver también
Categorías
Más información sobre Random Number Generation en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!