function s = knapsack_random ( n )

%*****************************************************************************80
%
%% knapsack_random() returns a random possible solution of a knapsack problem.
%
%  Discussion:
%
%    The subset is represented as a vector of binary digits.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    28 November 2024
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer n: the total number of items in the set.
%
%  Output:
%
%    integer s[n]: a subset.  Item i is in the subset if s[i] = 1.
%
  s = subset_random ( n );

  return
end

