Assume that you choose point $\xi$ from $[1,4]$ in the following way. You toss a coin that can give head, tail or stood on edge with equal probabilities. If it stood on edge, then $\xi = 3$. If tail, then you going to choose $\xi$ randomly from $[1,2]$. If head, then randomly from $[2,4]$. The question is what are cumulative density function, mean and variance of such random variable?
Let's start from CDF. It is obvious that for $t \leq 1$ $F_\xi(t) = 0$ and for $t \geq 4$ $F_\xi(t) = 1$. I assumed that $F_\xi(t) = \frac{1}{3}\cdot\frac{t-1}{1}$ for $1 \leq t < 2$ and $F_\xi(t) = \frac{1}{3}+\frac{t-2}{4-2}=\frac{3t-4}{6}$ for $2 \leq t < 4$. Am I right or are there any mistakes here? Further computations of $M\xi$ and $D\xi$ are rather straightforward from CDF (split integral from $1$ to $4$ into two integrals from $1$ to $2$ and from $2$ to $4$ with corresponding derivatives of CDF on each interval).