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.

Source Distribution

qrandom-NoahGWood-1.0.0.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

qrandom_NoahGWood-1.0.0-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page