Combinatorica`
Combinatorica`
RandomKSetPartition
RandomKSetPartition[set,k]
returns a random set partition of set with blocks.
RandomKSetPartition[n,k]
returns a random set partition of the first natural numbers into blocks.
Details and Options
- To use RandomKSetPartition, you first need to load the Combinatorica Package using Needs["Combinatorica`"].