Uniform random sampling of integer partitions, optionally with a fixed number of parts
This is a straighforward implementation of Arratia & DeSalvo's Algorithm 5 Probabilistic Divide-and-Conquer Deterministic Second Half for Integer Partitions, arXiv:1110.3856, together with DeSalvo's answer on Stack Overflow.
See the Jupyter notebook for examples and use.
conda install -c alicedb randompartitions