Randomize three variables subject to sum always equal to 1
If order is important, that certainly should be done.
For that matter, note that the third number isn't "completely random" at
any time - it's entirely determined by the first two.
In article ,
"sulprobil" wrote:
Please keep in mind that your solution is NOT complete
random: The first number is (on average) higher than the
other two.
Exchange the indices of your array randomly, I suggest.
|