Numeric Function Generators Using Decision Diagrams for Discrete Functions