Properly generate a secret number