Strategy pattern added when generating numbers. Added unit tests.