What does this sequence of random variable's distribution converge to? The random variables are given as follows $$Y_n=\frac{X_n-n}{n^2}, \quad n=1,2,3, \dots$$ and $X_n\sim\mathcal{U(n,n^2)}$- a sequence of independent variables. The answer is given by: $$P(Y_n<y)=P\left(\frac{X_n-n}{n^2}<y\right)=\begin{cases}0, &y\leq 0 \\[0.2cm] \dfrac{ny}{n-1}, &0<y \leq 1- \frac{1}{n} \\[0.2cm] 1, &y>1-\frac{1}{n} \end{cases}:n\to \infty =\mathcal U(0,1)$$
The interval that I do not understand is $$0<y \leq 1- \frac{1}{n}$$ Can someone explain this?
I assume you understand how $F_{Y_n}(y)=P(Y_n\le y)$ was obtained $$P(Y_n<y)=P\left(\frac{X_n-n}{n^2}<y\right)=\begin{cases}0, &y\leq 0 \\[0.2cm] \dfrac{ny}{n-1}, &0<y \leq 1- \frac{1}{n} \\[0.2cm] 1, &y>1-\frac{1}{n} \end{cases}$$ but you have a problem when you have to le $n \to \infty$. There are three parts, so let's see what happens to each part: