You don’t have to choose the name of a card that’s still in your library, or even a card that’s in your deck at all. If no card with the chosen name is in your library, you exile your library and lose 1 life for each of those cards.