function perm1_random_test ( )

%*****************************************************************************80
%
%% PERM1_RANDOM_TEST tests PERM1_RANDOM;
%
%  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_RANDOM_TEST\n' );
  fprintf ( 1, '  PERM1_RANDOM 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_random ( n, seed );
    perm1_print ( n, p, '' );
  end

  return
end
