function npart_rsf_lex_random_test ( )

%*****************************************************************************80
%
%% npart_rsf_lex_random_test() tests npart_rsf_lex_random();
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    25 January 2011
%
%  Author:
%
%    John Burkardt
%
  npart = 3;
  n = 12;

  fprintf ( 1, ' \n' );
  fprintf ( 1, 'npart_rsf_lex_random_test():\n' );
  fprintf ( 1, '  npart_rsf_lex_random() produces random examples\n' );
  fprintf ( 1, '  of partitions of N = %d\n', n );
  fprintf ( 1, '  with NPART = %d parts\n', npart );
  fprintf ( 1, '  in reverse standard form.\n' );
  fprintf ( 1, ' \n' );

  for i = 1 : 10

    t = npart_rsf_lex_random ( n, npart );

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

  end

  return
end
