function ksub_random3_test ( )

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

  fprintf ( 1, '\n' );
  fprintf ( 1, 'ksub_random3_test():\n' );
  fprintf ( 1, '  ksub_random3() 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 : 10
    a = ksub_random3 ( n, k );
    for j = 1 : n
      fprintf ( 1, '  %3d', a(j) );
    end
    fprintf ( 1, '\n' );
  end

  return
end
