Solution (source code)

= Solution

For the <continuous uniform distribution> on $[0,1]$, the <probability density function> is
$$
\boxed{f_X(x)=\begin{cases}1&0\leq x\leq1,\\0&\text{otherwise}.\end{cases}}
$$
Changing the values at the endpoints does not change any probabilities, because individual points have zero probability.