function perm_random_test ( )

%*****************************************************************************80
%
%% perm_random_test() tests perm_random().
%
%  Licensing:
%
%    This code is distributed under the MIT 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' );

  for test = 1 : 5

    p = perm_random ( n );

    i4vec_transpose_print ( n, p, '' )

  end

  return
end
