Clear Filters
Clear Filters

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

2 views (last 30 days)
Create a function called UniformAB that allow to generate N as a random integer value between A and B

Answers (1)

Manvi Goel
Manvi Goel on 14 Dec 2020
function N = UniformAB(a, b)
N = randi([a,b], 1,1);
end

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!