Combinatorica`
Combinatorica`

RandomComposition

RandomComposition[n,k]

constructs a random composition of integer n into k parts.

更多信息和选项