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

1 vue (au cours des 30 derniers jours)
Create a function called UniformAB that allow to generate N as a random integer value between A and B

Réponses (1)

Manvi Goel
Manvi Goel le 14 Déc 2020
function N = UniformAB(a, b)
N = randi([a,b], 1,1);
end

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by