function i4vec_max_test ( )

%*****************************************************************************80
%
%% I4VEC_MAX_TEST tests I4VEC_MAX.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 April 2009
%
%  Author:
%
%    John Burkardt
%
  n = 10;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'I4VEC_MAX_TEST\n' );
  fprintf ( 1, '  For an integer vector:\n' );
  fprintf ( 1, '  I4VEC_MAX: maximum entry;\n' );

  b = 1;
  c = 30;
  seed = 123456789;

  [ a, seed ] = i4vec_uniform_ab ( n, b, c, seed );
 
  i4vec_print ( n, a, '  Input vector:' );

  a_max = i4vec_max ( n, a );
  a_min = i4vec_min ( n, a );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Maximum: %d\n', a_max ) 
  return
end
