Added factory to generate numbers for validation