function a = vec_random ( n, base )

%*****************************************************************************80
%
%% vec_random() selects a random N-vector of integers modulo a given base.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    08 October 2008
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the size of the vector to be generated.
%
%    integer BASE, the base to be used.
%
%  Output:
%
%    integer A(N), a list of N random values between 0 and BASE-1.
%
  for i = 1 : n
    a(i) = i4_uniform_ab ( 0, base-1 );
  end

  return
end
