made NumberGenerator.py easier to use