properly generate the secret number