Added Max and step attribute to number in function generate_number