function r8vec_permute_uniform_test ( )

%*****************************************************************************80
%
%% r8vec_permute_uniform_test() tests r8vec_permute_uniform().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 May 2015
%
%  Author:
%
%    John Burkardt
%
  n = 12;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_PERMUTE_UNIFORM_TEST\n' );
  fprintf ( 1, '  R8VEC_PERMUTE_UNIFORM randomly reorders an R8VEC.\n' );

  a = 100 + ( 1 : n );

  r8vec_print ( n, a, '  A, before rearrangement:' );

  a = r8vec_permute_uniform ( n, a );

  r8vec_print ( n, a, '  A, after rearrangement:' );

  return
end
