Skip to main content

Python wrapper around the PCG c++ library.

Project description

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.

Project details


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.2.tar.gz (29.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Python_PCG-0.2-cp310-cp310-macosx_13_0_arm64.whl (37.7 kB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

File details

Details for the file Python-PCG-0.2.tar.gz.

File metadata

  • Download URL: Python-PCG-0.2.tar.gz
  • Upload date:
  • Size: 29.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for Python-PCG-0.2.tar.gz
Algorithm Hash digest
SHA256 6f08c3b2a0af66a117857972cad5e94b350b70eda7d953e54762207a3547e5b9
MD5 5e8c4fb14eeaeb7eb517ff9152ca43fa
BLAKE2b-256 34140abc8f6ac6f3edf18527450a386ba6d13fe7c4fccb83adf8dadcd5d7be8e

See more details on using hashes here.

File details

Details for the file Python_PCG-0.2-cp310-cp310-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for Python_PCG-0.2-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c2f0832f97fe811f1a0adf54898d0191813272ee6740ecac27cf8e3ab4785a61
MD5 01093052ddc90c3e9843c1801ff8a832
BLAKE2b-256 2565333f9b77eca3d945b4282b83efd2ae71b79d4c66f5bd4ab93bb86f066872

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page