added support for generating multiple numbers