function vec_random_test ( )

%*****************************************************************************80
%
%% vec_random_test() tests vec_random().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 July 2021
%
%  Author:
%
%    John Burkardt
%
  n = 3;
  base = 3;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'vec_random_test():\n' );
  fprintf ( 1, '  vec_random() generates a random N-vector\n' );
  fprintf ( 1, '  in a given base.\n' );
  fprintf ( 1, '  Here, we use base %d\n', base );
  fprintf ( 1, '\n' );

  for i = 1 : 5
    a = vec_random ( n, base );
    for j = 1 : n
      fprintf ( 1, '  %2d', a(j) );
    end
    fprintf ( 1, '\n' );
  end

  return
end
