function r = r8mat_uniform_abvec ( m, n, a, b )

%*****************************************************************************80
%
%% r8mat_uniform_abvec() returns a scaled pseudorandom R8MAT.
%
%  Discussion:
%
%    An R8MAT is an array of R8's.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    30 November 2021
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer M, N, the number of rows and columns in the array.
%
%    real A(M), B(M), the range of the pseudorandom values.
%
%  Output:
%
%    real R(M,N), an array of random values between 0 and 1.
%
  r = zeros ( m, n );

  for i = 1 : m
    r(i,1:n) = a(i) + ( b(i) - a(i) ) * rand ( 1, n );
  end

  return
end

