Shrodingers Random Number Generator
Project description
QRandom
Random number generation using quantum computers.
Right now the project is in its' infancy.
WARNING: THIS PROGRAM SHOULD NOT BE CONSIDERED CRYPTOGRAPHICALLY RANDOM UNLESS CONNECTED TO A REAL QUANTUM PROCESSOR
This is a basic example of how to use QRandom
You can import everything
from qrandom import *
or just the QRandom module if you'd like to instantiate it yourself
from qrandom import Qrandom x = QRandom()
generate a random float between 0 and 1:
print(random()) print(x.random())
generate a random integer in range
print(randrange(0, 5)) print(x.randrange(0, 5))
Generate a random number n bits long, defaults to integer output
print(getrandbits(8)) print(x.getrandbits(8))
You can also get the number in byte format
print(getrandbits(8, x="bytes"))
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 Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qrandom-NoahGWood-1.0.0.tar.gz.
File metadata
- Download URL: qrandom-NoahGWood-1.0.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00dfc1e232a3e489541641da33613c8b424d570867949a6ae89ad8637c9e55f6
|
|
| MD5 |
4d6ac89e03e5740402b89ae08077659b
|
|
| BLAKE2b-256 |
ff363fffaa4a6c597eeffefe9c5cbe26781ddfb0ff06d898dd3c7bf91154d8ee
|
File details
Details for the file qrandom_NoahGWood-1.0.0-py3-none-any.whl.
File metadata
- Download URL: qrandom_NoahGWood-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e9fc722b8e287da84ae10c9c18cd8865096f2b0a388beaa7473da59f41407c4
|
|
| MD5 |
ac13d88e55f9f2baa4164696e68c8a04
|
|
| BLAKE2b-256 |
874e55ab7917f07eefa02adc85fb646be95d72eb49b786cf0f9d05bab4dd8626
|