Skip to main content

mt19937ar for Python

Project description

mt19937ar

Python implementation of mt19937ar

Installation

pip install mt19937ar

Usage

from mt19937ar import MT19937ar

mt = MT19937ar()
mt.init_by_array([0x123, 0x234, 0x345, 0x456])

print(mt.genrand_int32()) # 1067595299
print(mt.genrand_int32()) # 955945823
print(mt.genrand_int32()) # 477289528

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

mt19937ar-0.1.2.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

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

mt19937ar-0.1.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file mt19937ar-0.1.2.tar.gz.

File metadata

  • Download URL: mt19937ar-0.1.2.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.15

File hashes

Hashes for mt19937ar-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e47df1c77b397cdb89f65490a04a38f473c11b0444daa914a097d873cd430c5e
MD5 0dd227d5d5ac94bf60acccfc8f7ea752
BLAKE2b-256 7da5a24107a331d0ae4d6d1d96f8b6b1db6b377f691981bd81f1c0415b9731da

See more details on using hashes here.

File details

Details for the file mt19937ar-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: mt19937ar-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.15

File hashes

Hashes for mt19937ar-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dada069289f51be8df118293196811121e094bfcb39ac0eff76e50c3fc42eabf
MD5 0a6af4cf0bdf6fcd39f0aee1626d45c0
BLAKE2b-256 938da72db3cfd0a160109c3be74147a6f64cfd975b3664cd760596a376a166b4

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