"Dmitrey Yershov" <email@example.com> wrote in message <firstname.lastname@example.org>... > Hello. I need to generate non-negative rundom numbers sum of which is equal to 1. Each number xi is constrained: ai<=xi<=bi. How can I do this? Similar question was solved here > > http://www.mathworks.com/matlabcentral/fileexchange/9700 > > but in this alghorithm a<=xi<=b (a and b are the same for all xi). Any ideas?