public static <T> Set<T> selectSome(Set<T> set, int count) {
		Set<T> newSet = new HashSet<>();
		int i = 0;
		for (T each : set) {
			if (++i > count) {
				break;
			}
			newSet.add(each);
		}
		return newSet;
	}
Select the given number of elements from the given set.

@param <T>   encapsulated type
@param set   set
@param count number of elements to retrieve
@return set
ngrinder-core/src/main/java/org/ngrinder/common/util/CollectionUtils.java