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

1 Ansicht (letzte 30 Tage)
Create a function called UniformAB that allow to generate N as a random integer value between A and B

Antworten (1)

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

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by