Properly generates a secret number.