function ksubset_random_test ( )

%*****************************************************************************80
%
%% ksubset_random_test() tests ksubset_random().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    12 September 2022
%
%  Author:
%
%    John Burkardt
%
  k = 3;
  n = 5;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'ksubset_random_test():\n' );
  fprintf ( 1, '  ksubset_random() returns a random K subset of an N set.\n' );
  fprintf ( 1, '\n' );

  for test = 1 : 10

    t = ksubset_random ( k, n );

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

  end

  return
end
