Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for qrandom-NoahGWood, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size qrandom_NoahGWood-1.0.0-py3-none-any.whl (3.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size qrandom-NoahGWood-1.0.0.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page