Suppose you had two three-sided dice D1 and D2 (they do exist), and suppose that rolling such a die gives a uniform probability of resulting in 1, 2 or 3. Our rolling procedure proceeds as follows.
Step 1. ROLL D1Steps are taken in sequential order unless a GOTO command is invoked. How many total dice rolls are performed in expectation?
Step 2. IF D1=3 GOTO Step 1
Step 3. ROLL D2
Step 4. IF D1=2 AND D2=3 GOTO Step 1
Step 5. STOP