function x = r8vec_uniform_abvec ( n, a, b )

%*****************************************************************************80
%
%% r8vec_uniform_abvec() returns a scaled pseudorandom R8VEC.
%
%  Discussion:
%
%    Dimension I ranges from A(I) to B(I).
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 October 2012
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of entries in the vector.
%
%    real A(N), B(N), the range of the pseudorandom values.
%
%  Output:
%
%    real X(N), the vector of pseudorandom values.
%
  r = rand ( n, 1 );

  x = a + ( b - a ) .* r;

  return
end
