Create a function called UniformAB that allow to generate N as a random integer value between A and B
Ältere Kommentare anzeigen
Create a function called UniformAB that allow to generate N as a random integer value between A and B
2 Kommentare
Daniel Pollard
am 9 Dez. 2020
https://uk.mathworks.com/help/matlab/ref/randi.html
Adam Danz
am 9 Dez. 2020
Do you have a question?
Antworten (1)
Manvi Goel
am 14 Dez. 2020
function N = UniformAB(a, b)
N = randi([a,b], 1,1);
end
Kategorien
Mehr zu Random Number Generation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!