Borrar filtros
Borrar filtros

How to generate a random integer between two bounds?

70 visualizaciones (últimos 30 días)
Cantor Set
Cantor Set el 4 de Sept. de 2019
Respondida: Alex Mcaulley el 4 de Sept. de 2019
Hello,
I want to generate a random integer between two integers
Suppose the upper bound UP=500 and the lower bound LB=4 how to generate a random integer between these 2 bounds
Thank you!

Respuesta aceptada

Alex Mcaulley
Alex Mcaulley el 4 de Sept. de 2019
randi([4,500])

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices 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!

Translated by