I need to find an example of two dependent random variables X and Y such that X+Y~U(0,2) so I thought this way: I need to find a P(X+Y<=z) :
P(X+Y<=z) which would lead to this density function which will mean that X+Y~U(0,2)
however I couldn't find an example