function perm1_random2_test ( )

%*****************************************************************************80
%
%% PERM1_RANDOM2_TEST tests PERM1_RANDOM2.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    13 April 2009
%
%  Author:
%
%    John Burkardt
%
  n = 4;
  fprintf ( 1, '\n' );
  fprintf ( 1, 'PERM1_RANDOM2_TEST\n' );
  fprintf ( 1, '  PERM1_RANDOM2 produces a random permutation of (1,...,N).\n' );
  fprintf ( 1, '  For this test, N = %d\n', n );
  fprintf ( 1, '\n' );
 
  seed = 123456789;

  for i = 1 : 5
    [ p, seed ] = perm1_random2 ( n, seed );
    perm1_print ( n, p, '' );
  end

  return
end
