add discreteGenerator builder function to GeneratorBuilder