Imagine we have a portfolio allocation vector $(x_1, ..., x_n)$ with $x_1+...+x_n=1$; Also we assume that the vector has only elements $\geq 0$, so we have $|x_1|+...+|x_n|=1$, so no short selling;
I want to generate such vectors $x$ and I want that they are somehow uniformly distributed on the set of possible values;
In a paper I read to generate $y_1, ... y_n \sim \text{Exp}(1)$ i.i.d. and then set: $x_i=y_i/(\sum\limits_{j=1}^{n}y_j)$;
Now it is obvious that the sum of elements of the generated vector is 1 but why do I use the exponential distribution? What advantage do I get? Isn't is more reasonable to take e.g. $y_i$ to be uniformly distributed on [0,1] and then again set $x_i=y_i/(\sum\limits_{j=1}^{n}y_j)$?