function subset_random_test ( )

%*****************************************************************************80
%
%% subset_random_test() tests subset_random().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    28 November 2024
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'subset_random_test():\n' );
  fprintf ( 1, '  Test subset_random()\n' );
  fprintf ( 1, '' );

  n = 5;
  fprintf ( 1, '  Subsets will be of size n = %d\n', n );
  fprintf ( 1, '\n' );

  for test = 0 : 10
    c = subset_random ( n );
    index = subset_to_rank ( c );
    fprintf ( 1, '  %2d:', index );
    for i = 1 : n
      fprintf ( 1, ' %d', c(i) );
    end
    fprintf ( 1, '\n' );
  end

  return
