(Assume that "Rand()" can produce truly random real number so we can only produce truly random number through this function.)
The common way is to produce a disordered sequence firstly and then sort them. But my question is, can we find a faster way to do this? Since it's ordered, maybe we can let an initial number grow bigger randomly and then we get an ordered sequence directly with no need to sort it, but it is difficult to guarantee its randomness. Is it possible? I am a high school student and just curious about the answer.
Suppose you want $n$ random numbers $a_k$, uniformly distributed between $0$ and $1$.
The probability that $a_1\gt x$ is $(1-x)^n=c_1$, so pick a uniform random number $c_1$ and let $b_1=1-\sqrt[n]{c_1}$, and $a_1=b_1$.
Now you need $n-1$ numbers uniformly distributed between $a_1$ and $1$.
Let $b_2=1-\sqrt[n-1]{c_2}$ and $a_2=a_1+(1-a_1)b_2$.
In general, $$c_k=Rand() \\b_k=1-\sqrt[n+1-k]{c_k} \\ a_k = a_{k-1}+(1-a_{k-1})b_k$$ EDiT
Take just two numbers $x$ and $y$. All points $(x,y)$ in the unit square are equally likely. Once you know the lower number is $c$, you are restricted to the two lines $(c,y), c\le y \le1$ and $(x,c),c\le x\le1$. In either case, the points on the line segment are equally likely, so the remaining variable is uniformly distributed between $c$ and $1$.
With three numbers, you start with points $(x,y,z)$ in a cube. Once you know the lowest value, you are restricted to three squares at right angles. Within any one, say $(c,y,z)$, the remaining variables $(y,z)$ are uniformly distributed over a square, and just need rescaling to be uniformly distributed over the unit square.
It won't always be the case. There is a probability density function, or PDF, which plays the role of ordinary probability. Then calculus plays an important role.