Create a function called UniformAB that allow to generate N as a random integer value between A and B

2 visualizaciones (últimos 30 días)
Create a function called UniformAB that allow to generate N as a random integer value between A and B

Respuestas (1)

Manvi Goel
Manvi Goel el 14 de Dic. de 2020
function N = UniformAB(a, b)
N = randi([a,b], 1,1);
end

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by