Feature #1479 Add generate_numeric_field function

Feature #1479