10
This is just reservoir sampling with a reservoir of size 1.
Essentially it is really simple
This is uniformly sampled, since the probability of picking any element at the end of the day is 1/n (exercise to the reader).