Skip to main content

README

A pure-python random number generator expander.

Given a random number generator that yields numbers in the range 1-n, create a new random number generator that yields numbers in the range 1-y where y>x, x>1, y>1, y>x**2

Codeship Status Build Status Downloads Latest Version Supported Python versions Development Status Wheel Status Egg Status Download format License

How do I get set up?

  • python setup.py install

  • Dependencies: six

  • Dependencies (test): Coverage, nose

  • How to run tests: ./runtests.sh

  • Deployment instructions: pip install shifty

Contribution guidelines

I accept pull requests.

What about test coverage?

There is a full suite of unit-tests.

Who do I talk to?

  • Francis Horsman: francis.horsman@gmail.com

Example

>>> from randy import randy
>>> import random
>>> r = randy(5, 7, fn=lambda: random.randint(1, 5))

Slice it:
>>> random_value = r[2] 3

Call it:
>>> random_value = r() 1

Iterate with it:
>>> random_value = iter(r).next() 5

Print it:
>>> str(r) 'randy(7 from 5): [[1, 2, 3, 4, 5], [6, 7, 1, 2,3], [4, 5, 6, 7, 1], [2, 3, 4, 5, 6], [7, 0, 0, 0, 0]]'

Metadata

Release files for randy 0.9.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for randy 0.9.3
File Size Uploaded Provenance Actions
randy-0.9.3.tar.gz 5.4 kB Without provenance Details for randy-0.9.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for randy 0.9.3
File Interpreter ABI Platform Actions
randy-0.9.3-py2.py3-none-any.whl Python 3, Python 2 none any Details for randy-0.9.3-py2.py3-none-any.whl

Total release size: 10.4 kB

Release files / randy-0.9.3.tar.gz

Download URL randy-0.9.3.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9b4107a8c1df8fc1b1635f506f9fe2d2fc1dd91ae0c419179f0a0cc1c26f8805
BLAKE2b-256 checksum
How to use checksums
76f62fd6fbab3c7d9654ee791cbc447dffc1f3b2c5a4143267b53480eac054cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / randy-0.9.3-py2.py3-none-any.whl

Download URL randy-0.9.3-py2.py3-none-any.whl
Size 5.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
aaadadd2a583ec2c3cec8e70605603e12e34bd1ade18e7c4919e9fcb3d2011aa
BLAKE2b-256 checksum
How to use checksums
08d6f63517a737ac8357fa769a346c6a5e7aa04a0129edd28051d9329d8f17ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for randy 0.9.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page