Python-PCG
This is a python wrapper around the pcg-cpp library, for randum number generation using the permuted congruential generator method. For more information, see the official website.
Installation
pip install Python-PCG
Usage:
import py_pcg
rng = py_pcg.PCG32()
rng = py_pcg.PCG32(42, 9001) # Seed with initial stream and state.
rng.rand() # Generate a single random uniform number.
rng.randn(100) # Generate a list of random numbers following a standard normal PDF.
rng.randint(1000, bound=100) # Generate a list of bounded random integers.
Metadata
Release files for Python-PCG 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| Python-PCG-0.2.tar.gz | 29.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Python_PCG-0.2-cp310-cp310-macosx_13_0_arm64.whl | CPython 3.10 | CPython 3.10 | macOS 13.0+ ARM64 | Details |
Total release size: 67.5 kB
Release files / Python-PCG-0.2.tar.gz
| Download URL | Python-PCG-0.2.tar.gz |
|---|---|
| Size | 29.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f08c3b2a0af66a117857972cad5e94b350b70eda7d953e54762207a3547e5b9
|
|
BLAKE2b-256 checksum How to use checksums |
34140abc8f6ac6f3edf18527450a386ba6d13fe7c4fccb83adf8dadcd5d7be8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / Python_PCG-0.2-cp310-cp310-macosx_13_0_arm64.whl
| Download URL | Python_PCG-0.2-cp310-cp310-macosx_13_0_arm64.whl |
|---|---|
| Size | 37.7 kB |
| Tags | CPython 3.10 macOS 13.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
c2f0832f97fe811f1a0adf54898d0191813272ee6740ecac27cf8e3ab4785a61
|
|
BLAKE2b-256 checksum How to use checksums |
2565333f9b77eca3d945b4282b83efd2ae71b79d4c66f5bd4ab93bb86f066872
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Security for Python-PCG 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.