function tree_random_test ( )

%*****************************************************************************80
%
%% tree_random_test() tests tree_random().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    11 September 2022
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, ' \n' );
  fprintf ( 1, 'tree_random_test():\n' );
  fprintf ( 1, '  tree_random() randomly selects a tree on N vertices.\n' );

  n = 6;

  for i = 1 : 10
    t = tree_random ( n );
    s = sprintf ( '  Pruefer code for random tree #%d', i );
    i4mat_print ( 2, n - 1, t, s );
  end

  return
end
