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
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
mt19937ar-0.1.2.tar.gz
(11.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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e47df1c77b397cdb89f65490a04a38f473c11b0444daa914a097d873cd430c5e
|
|
| MD5 |
0dd227d5d5ac94bf60acccfc8f7ea752
|
|
| BLAKE2b-256 |
7da5a24107a331d0ae4d6d1d96f8b6b1db6b377f691981bd81f1c0415b9731da
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dada069289f51be8df118293196811121e094bfcb39ac0eff76e50c3fc42eabf
|
|
| MD5 |
0a6af4cf0bdf6fcd39f0aee1626d45c0
|
|
| BLAKE2b-256 |
938da72db3cfd0a160109c3be74147a6f64cfd975b3664cd760596a376a166b4
|