function perm_random_test ( )

%*****************************************************************************80
%
%% PERM_RANDOM_TEST tests PERM_RANDOM.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    25 October 2014
%
%  Author:
%
%    John Burkardt
%
  n = 5;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'PERM_RANDOM_TEST\n' );
  fprintf ( 1, '  PERM_RANDOM randomly selects a permutation of 1, ..., N.\n' );
  fprintf ( 1, '\n' );

  seed = 123456789;

  for test = 1 : 5

    [ p, seed ] = perm_random ( n, seed );

    i4vec_transpose_print ( n, p, '' )

  end

  return
end
