I came across this fact that if we flip an unbiased coin infinite times and represent the outcome as $X(\omega)=(X_1(\omega),X_2(\omega),\ldots )$ then the new random variable $U$ defined by
$$ U(w)=\sum_{i=1}^{\infty} \frac{X_i(\omega)}{2^i} $$
would have a uniform distribution on $[0,1]$.
I want to prove this above fact in addition to it's converse that given a uniform random variable, it's binary representation is equivalent to infinite i.i.d coin tosses. Though converse is fairly easy, the if part is turning out to be difficult.
In essence, the experiment of infinite fair coin tosses serves as a building block for generating any other random variable.