Gods of Truth

You encounter three Gods in a room - the God of Truth, the God of Lie and the God of Uncertainty. You don't know which one is which, but know that the God of Truth always says the truth, the God of Lie always says the lie and the God of Uncertainty sometimes lies and sometimes says the truth. You can ask in succession each of the Gods a unique question, to which they can reply only with "Yes" or "No". However, their responses will be in their native language - "Da" or "Ne", and you don't know which translation to which answer corresponds. Your task is to figure out what questions to ask the Gods, so that will recognize which one of them is the God of Truth, which one is the God of Lie and which one is the God of Uncertainty.


Label the gods with numbers - 1, 2, and 3.

First ask god 1 "If I ask you whether god 2 is random, would you say 'Da'?". If he responds "Da", then god 3 is not the god of uncertainty. If he responds "Ne", then god 2 is not the god of uncertainty. In both cases we will be able to find a god which is not the god of uncertainty, let without of generality that is god 3.

Now ask god 3 "If I ask you whether you are the God of Lie, would you say 'Da'?". If he says "Da", then he is the God of Truth. If he says "No", then he is the God of Lie.

Finally, ask god 3 whether god 1 is the God of Uncertainty and conclude the identities of all gods.