function ksub_random4_test ( )

%*****************************************************************************80
%
%% KSUB_RANDOM4_TEST tests KSUB_RANDOM4.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  n = 5;
  k = 3;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'KSUB_RANDOM4_TEST\n' );
  fprintf ( 1, '  KSUB_RANDOM4 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' );

  seed = 123456789;

  for i = 1 : 10
    [ a, seed ] = ksub_random4 ( n, k, seed );
    for j = 1 : k
      fprintf ( 1, '  %3d', a(j) );
    end
    fprintf ( 1, '\n' );
  end

  return
end
