Generate multi-precision non-deterministic random Numbers.
Project description
Pure_NRNG
Generate multi-precision non-deterministic random Numbers package in python.
According to the calculation of the minimum entropy value of the raw entropy, the adaptive absorption of the appropriate entropy bit.
Installation
Installation can be done through pip. You must have python version >= 3.8
pip install pure-nrng
Usage
The statement to import the package:
from pure_nrng_package import pure_nrng
or
from pure_nrng_package import *
Example:
>>> nrng_instance = pure_nrng()
>>> true_rand_bits = nrng_instance.true_rand_bits(256)
>>> next(true_rand_bits)
>>> true_rand_float = nrng_instance.true_rand_float(256)
>>> next(true_rand_float)
>>> true_rand_int = nrng_instance.true_rand_int(100, 1)
>>> next(true_rand_int)
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
pure_nrng-1.1.0.tar.gz
(7.2 kB
view hashes)
Built Distribution
pure_nrng-1.1.0-py3-none-any.whl
(21.1 kB
view hashes)
Close
Hashes for pure_nrng-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f0f88c45b397b62d83ce14d69d6e4b5ed45aad20dbdd2dd1c6ce9e237f07180 |
|
MD5 | e9da3a0a19d62128830634d67577afea |
|
BLAKE2b-256 | b426926b09f7dc086e1c374abed16c116930e602f9da9e99b069e6bee9cc25d5 |