function perm1_mul_test ( )

%*****************************************************************************80
%
%% PERM1_MUL_TEST tests PERM1_MUL.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    30 May 2015
%
%  Author:
%
%    John Burkardt
%
  n = 5;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'PERM1_MUL_TEST\n' );
  fprintf ( 1, '  PERM1_MUL multiplies two permutations of (1,...,N).\n' );

  seed = 123456789;

  [ p1, seed ] = perm1_random ( n, seed );
  [ p2, seed ] = perm1_random ( n, seed );

  perm1_print ( n, p1, '  Permutation P1:' );

  perm1_print ( n, p2, '  Permutation P2:' );

  p3 = perm1_mul ( n, p1, p2 );

  perm1_print ( n, p3, '  Product permutation:' );

  return
end
