Skip to main content

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.

Distribution of numbers generated using termial random.

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

See this gist with benchmarks.

Release files for termial-random 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for termial-random 0.0.2
File Size Uploaded
termial-random-0.0.2.tar.gz 3.4 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for termial-random 0.0.2
File
termial_random-0.0.2-cp38-cp38-manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details
termial_random-0.0.2-cp38-cp38-manylinux1_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.5+ x86-64 Details
termial_random-0.0.2-cp36-cp36m-manylinux2014_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.17+ x86-64 Details
termial_random-0.0.2-cp36-cp36m-manylinux1_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 Details

Total release size: 106.3 kB

Release files / termial-random-0.0.2.tar.gz

Download URL termial-random-0.0.2.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
afb28b3686b6630b504cd754356713a55cac27fff5f9eee24e9bc460f3d0d3fa
BLAKE2b-256 checksum
How to use checksums
df1891071d754e3c068cf31cd80e6f86a866f29c266ae4015b0d7fd7fe890755
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / termial_random-0.0.2-cp38-cp38-manylinux2014_x86_64.whl

Download URL termial_random-0.0.2-cp38-cp38-manylinux2014_x86_64.whl
Size 25.7 kB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
e242787ff59898b7539afcb233c94a50849a2c459c4bacae05992172a225a0ed
BLAKE2b-256 checksum
How to use checksums
5896b017fcd57649780a22ccedd38365cdf7e6c32d27cf914eeeb7b89f560b2e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / termial_random-0.0.2-cp38-cp38-manylinux1_x86_64.whl

Download URL termial_random-0.0.2-cp38-cp38-manylinux1_x86_64.whl
Size 25.7 kB
Tags CPython 3.8 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
619fc52a1aa2ad082a1d6913f3c0cbe45a3f32ba701e7f123a53f98473e4d2ef
BLAKE2b-256 checksum
How to use checksums
a5a335c29362c8b87d5e7ac14aed00566e4eddd92a308bbfd0da6d8732d6476f
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / termial_random-0.0.2-cp36-cp36m-manylinux2014_x86_64.whl

Download URL termial_random-0.0.2-cp36-cp36m-manylinux2014_x86_64.whl
Size 25.7 kB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
adb08fe9ff9c8598774c8af012253fdb0fafe2890389bbf4c0e0adff689a97ae
BLAKE2b-256 checksum
How to use checksums
a31aca4fd350977198cc2438b941e7f976c318e041c64daf992e9ff2167ad59e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / termial_random-0.0.2-cp36-cp36m-manylinux1_x86_64.whl

Download URL termial_random-0.0.2-cp36-cp36m-manylinux1_x86_64.whl
Size 25.7 kB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
fabc0a0ee0b6bc31c36cecccb7ceaa8958773b7b91ca4cdc735a3f57047b7ba7
BLAKE2b-256 checksum
How to use checksums
49d1e1284f2b21cfb92ed61d25a463adae9c20e8c3c4c2d911818198fb6900ef
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.2 This release

5 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page