Unfortunately, the answers given here were a little bit too advanced for me, but I appreciate the efforts of @joriki and @Ross Millikan. Here is the approach that I ended up using. I'd be very pleased if someone could formalise it, although perhaps that too would also be too advanced!
So before considering the case of picking a random real number between $0$ and $1$, I thought about this scenario: consider the case where $P(\text{Head})$ could take only take $1$ out of $11$ possible values. They are $[0,0.1,0.2,0.3,\dots,0.9,1]$. I should add that each of these values is equally likely to be selected.
What is the chance of $P(\text{Head})$ being $0.1$ and a head coming up? Since these are $2$ independent events, $P[P(\text{Head})=0.1 \text{ and Head}] = \frac{1}{11} \times 0.1 = \frac{1}{11} \times \frac{1}{10} = \frac{1}{110}.$
Similarly, $P[P(\text{Head})=0.2 \text{ and Head}] = \frac{2}{110}$.
To try and make this scenario as intuitive as possible, I imagined what would happen if I flipped $110$ coins and everything occurs according to the theoretical probabilities.
For instance, there should be $2$ coins where $P(\text{Head})=0.2$ and the coins are showing heads.
Then, I discard the $55$ coins that are showing tails. There are $55$ coins remaining, all of which are showing heads. This means that $P[P(\text{Head})=0.2 \text{ and Head}]$ doubles from $\frac{2}{110}$ to $\frac{2}{55}$. Now I will consider the weighted average, again trying to make the process as intuitive as possible.
$$\frac{1(0.1)+2(0.2)+3(0.3)+\cdots+10(1)}{55}$$
So of the $55$ coins, $1$ will have $P(\text{Head})=0.1$, $2$ will have $P(\text{Head})=0.2$, and so on. Using a calculator, the weighted average ends up being $0.7$, which is not far from the true answer of $0.\overline{6}$ when you can pick any real number between $0$ and $1$.
I presume that as my approximation becomes more and more refined, e.g. I pick a value of $P(\text{Head})$ from $[0,0.01,0.02,\cdots,0.99,1]$, the answer tends towards $\frac{2}{3}$. This is where the formal aspects of mathematics hinder me, as I don't know if this is the proper way of approaching the real numbers. Perhaps someone can clarify.
Thank you for reading.