function a = i4vec_permute_uniform ( n, a )

%*****************************************************************************80
%
%% i4vec_permute_uniform() randomly permutes an I4VEC.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    23 May 2015
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of objects.
%
%    integer A(N), the array to be permuted.
%
%  Output:
%
%    integer A(N), the permuted array.
%
  p = perm1_uniform ( n );

  a = i4vec_permute ( n, a, p );

  return
end
