Add generate-numbers function.