Random integer generator that stops at a certain point
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ryan Mahoney
el 5 de Nov. de 2020
Comentada: Ryan Mahoney
el 5 de Nov. de 2020
I want to generate a random integer between 1 and 10, but I want it to keep generating integers until I get all integers between 1 and 10. Like:
r = randi( [1,10] )
4 7 2 4 9 10 8 8 5 1 6 2 7 4 4 8 3
At that point, it would stop.
0 comentarios
Respuesta aceptada
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!