MATLAB: Samples of Random Variable

random variable

Hi,
How can I select 10 samples (Xi) of a Uniform random variable between (0,1) such that the sum of the 10 samples (Xi) = 1?

Best Answer

Note: there are a lot of wrong ways to do this task. The above contribution is a right way.