@SuppressWarnings("unchecked")
@Override
public <T> T generateValue() {
List<T> results = new ArrayList<T>();
AtomicFunction function = new RandomFunction(clazz);
for (int i = 0; i < quantity; i++) {
results.add((T) function.generateValue());
}
return (T) results;
}