You have 2 coins.
one (A) has probabilities 1/2 for H and 1/2 for T, The other (B) has probabilities (n-1)/n for H and 1/n for T.
You wish to use these 2 coins to simulate a balanced n-faces dice. with a finite and pre-known number of flips.
Is it possible to do so?
If the probabilities where (for example) A = (1/2,1/2), B=(4/5,1/5) and you wished to simulate a 5-faces dice you would roll B, if you got T you would return 4 otherwise you would flip A 2 times and return the binary number you got ( 0 , 1 , 2 or 3 )
But if you had only one coin A=(1/2,1/2) and you wished to simulate a 7-faces dice it's provable that it is not possible