Create a function called UniformAB that allow to generate N as a random integer value between A and B
이전 댓글 표시
Create a function called UniformAB that allow to generate N as a random integer value between A and B
댓글 수: 2
Daniel Pollard
2020년 12월 9일
https://uk.mathworks.com/help/matlab/ref/randi.html
Adam Danz
2020년 12월 9일
Do you have a question?
답변 (1개)
Manvi Goel
2020년 12월 14일
function N = UniformAB(a, b)
N = randi([a,b], 1,1);
end
카테고리
도움말 센터 및 File Exchange에서 Random Number Generation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!