Implement number generation, input validation