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
Hashes for termial_random-0.0.2-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e242787ff59898b7539afcb233c94a50849a2c459c4bacae05992172a225a0ed |
|
MD5 | 8144ba98e59ceb688632b91bec6dd703 |
|
BLAKE2b-256 | 5896b017fcd57649780a22ccedd38365cdf7e6c32d27cf914eeeb7b89f560b2e |
Hashes for termial_random-0.0.2-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 619fc52a1aa2ad082a1d6913f3c0cbe45a3f32ba701e7f123a53f98473e4d2ef |
|
MD5 | f7c8608fc95fde7250ccc4224ad0f064 |
|
BLAKE2b-256 | a5a335c29362c8b87d5e7ac14aed00566e4eddd92a308bbfd0da6d8732d6476f |
Hashes for termial_random-0.0.2-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adb08fe9ff9c8598774c8af012253fdb0fafe2890389bbf4c0e0adff689a97ae |
|
MD5 | 59a9cb40ea86d1722fe58888a09f0f06 |
|
BLAKE2b-256 | a31aca4fd350977198cc2438b941e7f976c318e041c64daf992e9ff2167ad59e |
Hashes for termial_random-0.0.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fabc0a0ee0b6bc31c36cecccb7ceaa8958773b7b91ca4cdc735a3f57047b7ba7 |
|
MD5 | 930ffc7467fab53a1ef652d7fa1acc60 |
|
BLAKE2b-256 | 49d1e1284f2b21cfb92ed61d25a463adae9c20e8c3c4c2d911818198fb6900ef |