This minimalistic CPython extension provides termial random implementation.
See 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.
Simply install this library using pip:
pip install termial-random
The module provides 3 core routines:
termial_random.seed(n)
used to initialie glibc random number generator based onn
providedtermial_random.seed_init()
used to initialie glibc random number generator based on the current timetermial_random.random(n)
used to compute termial random number for the givenn