function perm1_uniform_test ( )

%*****************************************************************************80
%
%% perm1_uniform_test() tests perm1_uniform().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    25 October 2014
%
%  Author:
%
%    John Burkardt
%
  n = 10;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'perm1_uniform_test():\n' );
  fprintf ( 1, '  perm1_uniform() randomly selects a permutation of 1, ..., N.\n' );
  fprintf ( 1, '\n' );

  for test = 1 : 5

    p = perm1_uniform ( n );

    fprintf ( 1, '  ' );
    for i = 1 : n
      fprintf ( 1, '%4d', p(i) );
    end
    fprintf ( 1, '\n' );

  end

  return
end
