This is a simple class for generating random integer partitions under various restrictions.