function r8vec_uniform_abvec_test ( )

%*****************************************************************************80
%
%% R8VEC_UNIFORM_ABVEC_TEST tests R8VEC_UNIFORM_ABVEC.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    23 July 2018
%
%  Author:
%
%    John Burkardt
%
  n = 4;

  a = [ 1, 10.0, 100.0, -5.0 ];
  b = [ 2, 20.0, 101.0,  0.0 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_UNIFORM_ABVEC_TEST\n' );
  fprintf ( 1, '  R8VEC_UNIFORM_ABVEC returns a random R8VEC, with a range\n' );
  fprintf ( 1, '  specified for each dimension.\n' );
  fprintf ( 1, '  A[I] <= X[I] <= B[I].\n' );

  seed = 123456789;

  [ r, seed ] = r8vec_uniform_abvec ( n, a, b, seed );

  fprintf ( 1, '\n' );
  fprintf ( 1, '     I      A(I)   <= R(I)  <=  B(I)\n' );
  fprintf ( 1, '\n' );

  for i = 1 : n
    fprintf ( 1, '  %4d: %8.4g  %8.4g  %8.4g\n', i, a(i), r(i), b(i) );
  end

  return
end
