Generate a set of at most the given size from a generator.
The size of a generated set is limited both by the integer provided and the
number of unique values the generator can produce. It is very likely, but not
guaranteed, that generated sets will be as big as the smaller of these two limits.
Generate a set of at most the given size from a generator.
The size of a generated set is limited both by the integer provided and the number of unique values the generator can produce. It is very likely, but not guaranteed, that generated sets will be as big as the smaller of these two limits.