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.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.tar.gz.
File metadata
- Download URL: Python-PCG-0.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 |
4f15b8b5fd0049f060b5a7cf2dc60c9755ead021ee098dae04b8a244a7a92fae
|
|
| MD5 |
dcedf52dbbe50a539533cc05a8ab1216
|
|
| BLAKE2b-256 |
a3fdb2a7d8d38092ab085a033f4c06d63cca51cbd7b76f61f5c6b8bd4eeed16f
|
File details
Details for the file Python_PCG-0.1-cp39-cp39-macosx_12_0_arm64.whl.
File metadata
- Download URL: Python_PCG-0.1-cp39-cp39-macosx_12_0_arm64.whl
- Upload date:
- Size: 13.2 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 |
f9d66b18766b49c0c659a93bea07fd3e480b8677e63378c247296bdeae33f62a
|
|
| MD5 |
f4ffeb48585ad047ee6a7cf50c1eaabd
|
|
| BLAKE2b-256 |
4430f2cbe38aaa0d81ea81b9bfcb6a6c35fb5fff8caa821d313b2dc26eb0c5b0
|