So for our variable X = 'a randomly picked value between 0 and 1'
 
The mean of X is

 
and to get the variance of X we first get E(X2)