function x = r82vec_uniform_ab ( n, a, b )

%*****************************************************************************80
%
%% r82vec_uniform_ab() returns a random R82VEC in a given range.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    05 February 2005
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of entries in the vector.
%
%    real A, B, the minimum and maximum values.
%
%  Output:
%
%    real X(2,N), the vector of randomly chosen values.
%
  x = rand ( 2, n );  
  x = x + ( b - a ) * x;

  return
end
