function [ s, seed ] = subset_random ( n, seed )

%*****************************************************************************80
%
%% SUBSET_RANDOM returns a random subset.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    24 December 2015
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, integer N, the size of the set.
%
%    Input/output, integer SEED, a seed for the random number
%    generator.
%
%    Output, integer S(N), defines the subset using 0 and 1 values.
%
  [ s, seed ] = i4vec_uniform_ab ( n, 0, 1, seed );

  return
end