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
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 Distributions
Built Distributions
File details
Details for the file termial_random-0.0.1-cp36-cp36m-manylinux2014_x86_64.whl
.
File metadata
- Download URL: termial_random-0.0.1-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 | ded00c1138c27c503bc7f62ae20f0ceda11545e65c3c9299f66eb521bc0f0c1c |
|
MD5 | a9387570b61db11bed971c84f469fed7 |
|
BLAKE2b-256 | f10a76cf89d14c59a0c62c16c8449fa22f4378976e65b7a6e00d1613fa33a71f |
File details
Details for the file termial_random-0.0.1-cp36-cp36m-manylinux1_x86_64.whl
.
File metadata
- Download URL: termial_random-0.0.1-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 | 30eff9c78675bf9f83700f643abd4aa9c97675b07ef4790daee6eb691c156785 |
|
MD5 | 46762399526ba996d56ed3d6444f8f87 |
|
BLAKE2b-256 | e2a7337eddbdc0ad5583ec0325997cd020eb8900d26c5afa11a41c265bbb8830 |