% UNIFORMRAND.M  generates an uniform random sample
% on the interval [a,b].
%
% Inputs: a,b - minimum and maximum values on the interval
%         N   - sample size
%
% Output: randval - random sample
%

function randval=uniformrand(a,b,N)

randval=zeros(N,size(a,2));
for i=1:size(a,2)
    randval(:,i)=a(i)+rand(N,1).*(b(i)-a(i));
end
