This was a job interview question someone asked about on Reddit. (Link)
How can you generate a uniform distribution on $\{1,\dots,7\}$ using a fair die?
Presumably, you are to do this by combining repeated i.i.d draws from $\{1,\dots,6\}$ (and not some Rube-Goldberg-esque rig that involves using the die for something other than rolling it).
You can't do it in a limited number of rolls, because in $N$ rolls, you get $6^N$ elements in the sample space, and that isn't divisible by $7$.
So roll the die twice, use those two values to encode a number from $1$ and $36$. If the first roll is $A$ and the second $B$, you can do this by computing $6A+B-6$.
If you get $36$, roll again.
If not, reduce modulo $7$, then add $1$.
Potentially, you could be rolling forever. In reality, it is highly unlikely you'd have to roll more than 6 times to get a value.