function subset_random_test ( )

%*****************************************************************************80
%
%% subset_random_test() tests subset_random().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 July 2021
%
%  Author:
%
%    John Burkardt
%
  n = 5;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'subset_random_test():\n' );
  fprintf ( 1, '  subset_random() picks a subset at random.\n' );
  fprintf ( 1, '  The number of elements in the main set is %d\n', n );
  fprintf ( 1, '\n' );

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

  return
end
