function i4mat_perm_uniform_test ( )

%*****************************************************************************80
%
%% i4mat_perm_uniform_test() tests i4mat_perm_uniform().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 April 2009
%
%  Author:
%
%    John Burkardt
%
  n = 5;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4mat_perm_uniform_test():\n' );
  fprintf ( 1, '  i4mat_perm_uniform() applies a random permutation\n' );
  fprintf ( 1, '  to a square integer matrix.\n' );
 
  for i = 1 : n
    for j = 1 : n
      a(i,j) = 10 * i + j;
    end
  end

  i4mat_print ( n, n, a, '  The original matrix:' );

  a = i4mat_perm_uniform ( n, a );

  i4mat_print ( n, n, a, '  The permuted matrix:' );

  return
end
