function s = subset_sample ( m )

%*****************************************************************************80
%
%% subset_sample() returns a random subset of an M set.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    03 January 2020
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    Input, integer M, the size of the set.
%
%  Output:
%
%    integer S(M), defines the subset using 0 and 1 values.
%
  s = randi ( [ 0, 1 ], [ m, 1 ] );

  return
end
