verarandom
True random numbers in Python.
Full documentation: https://alighahraei.github.io/verarandom/
Usage
This module provides random.Random subclasses, so they implement all random functions (except Bookkeeping functions) with true randomness. They require an internet connection to work and will either raise a ConnectionError or a subclass of verarandom.errors.VeraRandomError for validation failures and other related error conditions.
>>> from verarandom import RandomOrg
>>> r = RandomOrg()
>>> r.quota_estimate
1000000
>>> r.randint(1, 10, n=5)
[3, 4, 10, 3, 7]
>>> r.quota_estimate # bits were deducted from quota
999986
>>> r.randint(3, 5, n=1)
[5]
>>> r.randint(-10, 3) # a single number (like random.randint)
-2
>>> r.random()
0.040120765652295
>>> r.choice(['rock', 'paper', 'scissors'])
'scissors'
Metadata
Release files for verarandom 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| verarandom-2.0.1.tar.gz | 5.3 kB | Without provenance | Details for verarandom-2.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| verarandom-2.0.1-py3-none-any.whl | Python 3 | none | any | Details for verarandom-2.0.1-py3-none-any.whl |
Total release size: 12.2 kB
Release files / verarandom-2.0.1.tar.gz
| Download URL | verarandom-2.0.1.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3aef213ab397a795b9bcef9938615b583442f06572f8d4a77541136eb67669a1
|
|
BLAKE2b-256 checksum How to use checksums |
36f981c3bb51ec098da7bc1d29635b328c432862af1bb568ab203c605e27a7da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.8 CPython/2.7.10
|
Release files / verarandom-2.0.1-py3-none-any.whl
| Download URL | verarandom-2.0.1-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
313ae3445d49f28a3ab4c243fe27e96d9c19baae27468321c180e43a84fabf4a
|
|
BLAKE2b-256 checksum How to use checksums |
15712131a238cdb45daf4882233a72495419fd4a03d0452cf1ebecfe8f28883f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.8 CPython/2.7.10
|
Security for verarandom 2.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.