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
Close
Hashes for qrandom_NoahGWood-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e9fc722b8e287da84ae10c9c18cd8865096f2b0a388beaa7473da59f41407c4 |
|
MD5 | ac13d88e55f9f2baa4164696e68c8a04 |
|
BLAKE2b-256 | 874e55ab7917f07eefa02adc85fb646be95d72eb49b786cf0f9d05bab4dd8626 |