function a = vector_random ( d, b )

%*****************************************************************************80
%
%% vector_random() generates a random vector.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    31 October 2022
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer d: the vector dimension.
%
%    integer B, the base to be used.  B = 2 will
%    give vectors of 1's and 2's, for instance.
%
%  Output:
%
%    integer A(D), the random vector.
%
  a = randsample ( b, d );
  a = a';

  return
end
