MATLAB: Unifrnd generates a large number of uniform distributions. Is a part of it still uniform?

mathunifrnd

Excuse me, I use a = unifrnd (0.2,0.550000,1); generate these 50000 random numbers that conform to (0.2,0.5) uniform distribution, and then I take 3000, for example, am = a (1:3000,:). Are these 3000 random numbers also conform to (0.2,0.5) uniform distribution? thank you!

Best Answer

Short answer: Yes.
Long answer: yyyyyeeeeeessssssss.
Think of it like this: These numbers have the property of beeing iid. Independent, identically distributed. And that tells you if you take some subset of them that is not based on their value, they will still have the same distribution.
Yes, if you consider a subset where you choose only those that are less than 0.3, then they will not have the same overall distribution. But a subset chosen arbitrarily based only on index will still have the original distribution.