combinat
randpart
construct a random partition
Calling Sequence
Parameters
Description
Examples
randpart(n)
n
-
positive integer
The function randpart computes and returns a random partition of the positive integer n. This consists of a random list of positive integers whose sum is n.
The command with(combinat,randpart) allows the use of the abbreviated form of this command.
with⁡combinat,randpart
randpart⁡10
2,2,6
1,1,4,4
1,2,2,5
See Also
combinat[partition]
Download Help Document