randpart - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


combinat

  

randpart

  

construct a random partition

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

randpart(n)

Parameters

n

-

positive integer

Description

• 

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.

Examples

withcombinat,randpart

randpart

(1)

randpart10

2,2,6

(2)

randpart10

1,1,4,4

(3)

randpart10

1,2,2,5

(4)

See Also

combinat[partition]