Move numbers generator into getNumbers function