[R] generate random numbers that sum up to 1

sun as at hut.at
Tue Oct 10 15:27:58 CEST 2006


I am trying to generate a vector of random numbers with the constraint that 
they have to sum up to one with uniform distribution.

eg. {0.1,0.7,0.2 }

any function to do this? Thanks.



More information about the R-help mailing list