code: public static <T> Set<T> getRandomSubsetMax(Set<T> set, int maxCount) {
  		int count = rand.nextInt(maxCount) + 1;
  		return getRandomSubset(set, count);
  	}
docs: Generates a random subset of <code>set</code>, that contains at most
  <code>maxCount</code> elements.
  
  @param <T>
  Type of set elements
  @param set
  Basic set for operation
  @param maxCount
  Maximum number of items
  @return A subset with at most <code>maxCount</code> elements