How to generate a set of random wights(wi)/probabilities(pi) such that sum(pi)=1/sum(wi)=1, i=1,2.....,k OR How to generate K values between 0 and 1 such that their sum is always?