function s = subset_random ( n )

%*****************************************************************************80
%
%% subset_random() returns a random subset of n items.
%
%  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 = randi ( [ 0, 1 ], n, 1 );

  return
end

