Generate random integer partitions
This is a python wrapper for the rust crate random-partition for generating integers partitions with a given number of parts.
Example
import random_partition_py as rpp
# generates a single partition of 20 into 5 parts
print(rpp.random_partitions(20, 5))
# generates multiple partitions
print(rpp.random_partitions(20, 5, 3))
# same thing but with an additional seed (note that the seed is kw-only)
print(rpp.random_partitions_seeded(20, 5, 3, seed=0))
Metadata
Release files for random-partition-py 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| random_partition_py-0.2.0.tar.gz | 9.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| random_partition_py-0.2.0-cp310-cp310-manylinux_2_34_x86_64.whl | CPython 3.10 | CPython 3.10 | Linux glibc 2.34+ x86-64 | Details |
Total release size: 365.5 kB
Release files / random_partition_py-0.2.0.tar.gz
| Download URL | random_partition_py-0.2.0.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0e0577745c22d0cd94a92296dd5d87aa06cf4304f31f24b7f85d18363bd7c9dc
|
|
BLAKE2b-256 checksum How to use checksums |
afad846c4d9987e942555d1c16cabdd69debac4022fc19123d4b5979858e6f5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.14.17
|
Release files / random_partition_py-0.2.0-cp310-cp310-manylinux_2_34_x86_64.whl
| Download URL | random_partition_py-0.2.0-cp310-cp310-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 356.5 kB |
| Tags | CPython 3.10 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
81c353e309fba57fdde4fd901f88e1c5ebd9be229a5ac64c62e251781e921c89
|
|
BLAKE2b-256 checksum How to use checksums |
23b6b6d33cede0fb0b22a75292730605eadaf852b3a97bff0771752e751251fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.14.17
|