Generate repeatable random integers within a fixed range
Mostrar comentarios más antiguos
I want to generate 4 random integers from 4 to 11. The integers are repeatable
Respuestas (1)
a = randi([4 11], 4, 1)
Categorías
Más información sobre Random Number Generation 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!