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.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.1-cp39-cp39-macosx_12_0_arm64.whl (13.3 kB view details)

Uploaded CPython 3.9macOS 12.0+ ARM64

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

Hashes for Python-PCG-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5422e186718acf4f5c2b42aa29315f1d9c1485b4b436378a0cc81492a397a4ce
MD5 97c395c306d66c13e06506cc238ddc15
BLAKE2b-256 5af779363bfcff910c5f020e09cad75d202ea5eb374b82aca2e04a1c6c80cea1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Python_PCG-0.1.1-cp39-cp39-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 a194f5e2b1e087cdfefe5de59eba0f975bb20cad9628450cc96ea8f429f58727
MD5 9b8782f7b4b8b229e68b5e371d3860d9
BLAKE2b-256 156bc6d296a4fa0c64c8896fdd8387767d738215583a1b2b6755b214968ee913

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