Let us consider $X_1,...,X_n$ iid random variables which are distributed with respect to some density $f(x)$. Let $R_n:=R(X_1,...X_n)$ be some continuous random variable which depends on $X_1,...,X_n$ and define $Z_n:=F_{R_n}(R_n)$ where $F_{R_n}(t)=\Bbb{P}(R_n\leq t)$. I want to show that $Z_n\sim \operatorname{Uni}(0,1)$.
Im a bit confused about $Z_n$ because if I replace it with the definition I would get $Z_n=F_{R_n}(R_n)=\Bbb{P}(R_n\leq R_n)=1$. This is my first confusion. But the second one is that I don't see a way to show that this random variable is uniformly distributed. I thought about showing that for all $q\in (0,1)$ $$\Bbb{P}(Z_n\leq q)=q$$ but this does not went well.
Can maybe someone help me?