"Dmitrey Yershov" <firstname.lastname@example.org> wrote in message <email@example.com>... > 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?