When the postman arrived at the Smith home to deliver mail through a slot in the front door, he was surprised to find the Smiths had acquired a vicious dog. The dog was fastened to a tree by a chain just long enough to reach the front door. The dog growled and bared its teeth.

How did the clever postman outwit the dog and reach the door safely?

Three Gods A, B, and C are called, in no particular order, True, False, and Random. True always speaks truly, False always speaks falsely, but whether Random speaks truly or falsely is a completely random matter.

Your task is to determine the identities of A, B, and C by asking three yes-no questions; each question must be put to exactly one God. The Gods understand English, but will answer all questions in their own language, in which the words for yes and no are “da” and “ja”, in some order. You do not know which word means which.

1. It could be that some God gets asked more than one question (and hence that some God is not asked any question at all).
2. What the second question is, and to which God it is put, may depend on the answer to the first question. (And of course similarly for the third question.)
3. Whether Random speaks truly or not should be thought of as depending on the flip of a coin hidden in his brain: if the coin comes down heads, he speaks truly; if tails, falsely.
4. Random will answer “da” or “ja” when asked any yes-no question.

What would your three questions be?