Skip to main content

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


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)

Uploaded Source

Built Distribution

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

Python_PCG-0.1-cp39-cp39-macosx_12_0_arm64.whl (13.2 kB view details)

Uploaded CPython 3.9macOS 12.0+ ARM64

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

Hashes for Python-PCG-0.1.tar.gz
Algorithm Hash digest
SHA256 4f15b8b5fd0049f060b5a7cf2dc60c9755ead021ee098dae04b8a244a7a92fae
MD5 dcedf52dbbe50a539533cc05a8ab1216
BLAKE2b-256 a3fdb2a7d8d38092ab085a033f4c06d63cca51cbd7b76f61f5c6b8bd4eeed16f

See more details on using hashes here.

File details

Details for the file Python_PCG-0.1-cp39-cp39-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for Python_PCG-0.1-cp39-cp39-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 f9d66b18766b49c0c659a93bea07fd3e480b8677e63378c247296bdeae33f62a
MD5 f4ffeb48585ad047ee6a7cf50c1eaabd
BLAKE2b-256 4430f2cbe38aaa0d81ea81b9bfcb6a6c35fb5fff8caa821d313b2dc26eb0c5b0

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