Python wrapper around the PCG c++ library.
Project description
PyPCG
This is a python wrapper around the pcg-cpp library, for randum number generation using the permuted congruential generator method.
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.randint(1000, bound=100) # Generate a list of bounded random integers
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Python-PCG-0.1.1.tar.gz
(29.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Python-PCG-0.1.1.tar.gz.
File metadata
- Download URL: Python-PCG-0.1.1.tar.gz
- Upload date:
- Size: 29.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5422e186718acf4f5c2b42aa29315f1d9c1485b4b436378a0cc81492a397a4ce
|
|
| MD5 |
97c395c306d66c13e06506cc238ddc15
|
|
| BLAKE2b-256 |
5af779363bfcff910c5f020e09cad75d202ea5eb374b82aca2e04a1c6c80cea1
|
File details
Details for the file Python_PCG-0.1.1-cp39-cp39-macosx_12_0_arm64.whl.
File metadata
- Download URL: Python_PCG-0.1.1-cp39-cp39-macosx_12_0_arm64.whl
- Upload date:
- Size: 13.3 kB
- Tags: CPython 3.9, macOS 12.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a194f5e2b1e087cdfefe5de59eba0f975bb20cad9628450cc96ea8f429f58727
|
|
| MD5 |
9b8782f7b4b8b229e68b5e371d3860d9
|
|
| BLAKE2b-256 |
156bc6d296a4fa0c64c8896fdd8387767d738215583a1b2b6755b214968ee913
|