Combinatorica`
Combinatorica`

RandomKSetPartition

RandomKSetPartition[set,k]

returns a random set partition of set with k blocks.

RandomKSetPartition[n,k]

returns a random set partition of the first n natural numbers into k blocks.

Details