Extensions to standard Python's heapq for performance applications
Project description
This minimalistic CPython extension provides termial random implementation.
See this and this article for more info on termial random.
Basically, the random generator prioritizes numbers closer to 0. See the distribution plotted below for n==10.
Installation
Simply install this library using pip:
pip install termial-random
Usage
The module provides 3 core routines:
termial_random.seed(n) used to initialie glibc random number generator based on n provided
termial_random.seed_init() used to initialie glibc random number generator based on the current time
termial_random.random(n) used to compute termial random number for the given n
Benchmarks
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
Built Distributions
File details
Details for the file termial-random-0.0.2.tar.gz
.
File metadata
- Download URL: termial-random-0.0.2.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | afb28b3686b6630b504cd754356713a55cac27fff5f9eee24e9bc460f3d0d3fa |
|
MD5 | e667a5ee2923a978f1d3c1506795064c |
|
BLAKE2b-256 | df1891071d754e3c068cf31cd80e6f86a866f29c266ae4015b0d7fd7fe890755 |
File details
Details for the file termial_random-0.0.2-cp38-cp38-manylinux2014_x86_64.whl
.
File metadata
- Download URL: termial_random-0.0.2-cp38-cp38-manylinux2014_x86_64.whl
- Upload date:
- Size: 25.7 kB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e242787ff59898b7539afcb233c94a50849a2c459c4bacae05992172a225a0ed |
|
MD5 | 8144ba98e59ceb688632b91bec6dd703 |
|
BLAKE2b-256 | 5896b017fcd57649780a22ccedd38365cdf7e6c32d27cf914eeeb7b89f560b2e |
File details
Details for the file termial_random-0.0.2-cp38-cp38-manylinux1_x86_64.whl
.
File metadata
- Download URL: termial_random-0.0.2-cp38-cp38-manylinux1_x86_64.whl
- Upload date:
- Size: 25.7 kB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 619fc52a1aa2ad082a1d6913f3c0cbe45a3f32ba701e7f123a53f98473e4d2ef |
|
MD5 | f7c8608fc95fde7250ccc4224ad0f064 |
|
BLAKE2b-256 | a5a335c29362c8b87d5e7ac14aed00566e4eddd92a308bbfd0da6d8732d6476f |
File details
Details for the file termial_random-0.0.2-cp36-cp36m-manylinux2014_x86_64.whl
.
File metadata
- Download URL: termial_random-0.0.2-cp36-cp36m-manylinux2014_x86_64.whl
- Upload date:
- Size: 25.7 kB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | adb08fe9ff9c8598774c8af012253fdb0fafe2890389bbf4c0e0adff689a97ae |
|
MD5 | 59a9cb40ea86d1722fe58888a09f0f06 |
|
BLAKE2b-256 | a31aca4fd350977198cc2438b941e7f976c318e041c64daf992e9ff2167ad59e |
File details
Details for the file termial_random-0.0.2-cp36-cp36m-manylinux1_x86_64.whl
.
File metadata
- Download URL: termial_random-0.0.2-cp36-cp36m-manylinux1_x86_64.whl
- Upload date:
- Size: 25.7 kB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fabc0a0ee0b6bc31c36cecccb7ceaa8958773b7b91ca4cdc735a3f57047b7ba7 |
|
MD5 | 930ffc7467fab53a1ef652d7fa1acc60 |
|
BLAKE2b-256 | 49d1e1284f2b21cfb92ed61d25a463adae9c20e8c3c4c2d911818198fb6900ef |