I want to generate a large data frame (100000 rows and 3 columns) that has three columns (A, B and C).
This data frame satisfies the two conditions:
- in each row,
A+B+C=1
; - all the A have a triangular distribution (min=0.2,mod=0.3,max=0.4), all the B have a triangular distribution (min=0.3,mod=0.4,max=0.5) and all the C have a triangular distribution (min=0.1,mod=0.3,max=0.5).
I could not figure out how to generate this kind of data set.
Many thanks for your suggestions in advance.
Songchao