function ksub_random2_test ( )

%*****************************************************************************80
%
%% ksub_random2_test() tests ksub_random2().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    11 June 2020
%
%  Author:
%
%    John Burkardt
%
  n = 5;
  k = 3;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'ksub_random2_test():\n' );
  fprintf ( 1, '  ksub_random2() generates a random K subset of an N set.\n' );
  fprintf ( 1, '  Set size is N =    %d\n', n );
  fprintf ( 1, '  Subset size is K = %d\n', k );
  fprintf ( 1, '\n' );

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

  return
end
