function val = frand(minval,maxval)
%
% frand - random number in range [minval,maxval]

val = minval + rand*(maxval-minval);
