$n=3$ case, your Cumulative Probability moves up at $\frac{1}{3}$ and $\frac{2}{3}$.
Therefore, if you can generate a uniform random number, if the uniform random number falls in between 0 and $\frac{1}{3}$, you choose the first element. and so on.
The question is "Can we generate a uniform random number?" Yes, but, it will take infinite numbers of toss. Good news is we don't need infinite accuracy.
Here is the trick.
Every time you toss the coin, you divide a range in half and move to the upper or the lower range.
You toss a coin first, to decide whether the random number will be greater than $\frac{1}{2}$ or not. range from 0 to $\frac{1}{2}$ or from $\frac{1}{2}$ to 1. let's say you get tail and choose the lower range. you can not decide either the 1st element or the 2nd element. but obviously, your range is out of the 3rd element range.
Toss again. Again decide upper or lower, now, from 0 to $\frac{1}{4}$ or from $\frac{1}{4}$ to $\frac{1}{2}$
If it falls the lower (0~0.25), now the whole range falls into the first element range (0 to $\frac{1}{3}$) you choose the 1st element.
if not you keep tossing a coin until you random number range falls into one element range.