Create a function called UniformAB that allow to generate N as a random integer value between A and B
Mostrar comentarios más antiguos
Create a function called UniformAB that allow to generate N as a random integer value between A and B
2 comentarios
Daniel Pollard
el 9 de Dic. de 2020
https://uk.mathworks.com/help/matlab/ref/randi.html
Adam Danz
el 9 de Dic. de 2020
Do you have a question?
Respuestas (1)
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 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!