Skip to main content

PyRandToys

pyrandtoys is a python module containing probability-based toys functions. It works offline and is compatible with both Python 2 and 3.

Installation

pip install pyrandtoys

Usage

import pyrandtoys

Dice:

  • Optional: Number of Dice <int>

  • Default: Number of Dice = 1

  • Return Type: <tuple>

dice(number_of_dice)

Coin:

  • Optional: Number of Coins <int>

  • Default: Number of Coins = 1

  • Return Type: <tuple>

coin(number_of_coins)

Card:

  • Optional: Number of Cards <int>

  • Default: Number of Cards = 1

  • Return Type: <tuple>

card(number_of_cards)

Similar Toys:

  • Optional: Number of Items <int>

  • Default: Number of Items = 1

  • Return Type: <tuple>

dreidel(number_of_dreis)
cat(number_of_cats)
switch(number_of_switches)

Spinner:

  • Required: Lower & Upper Limits <int>

  • Default: Lower Limit = 0

  • Return Type: <int>

spinner(lowerLimit, upperLimit)

Toy Combinations:

  • Default: Number of Toys = 0

  • Return Type: <tuple>

If you want to use a combination of toys then,

Required: names of toys as <tuple>, <list>, <str>

combi("coin", "switch")
combi(("switch", "cat", "dice"))
combi(["dreidel", "coin", "coin", "cat"])

For combination of x random toys,

combi(x)

Metadata

Release files for pyrandtoys 1.0.0

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

Source distribution (sdist)

Source distribution for pyrandtoys 1.0.0
File Size Uploaded Provenance Actions
pyrandtoys-1.0.0.tar.gz 4.1 kB Without provenance Details for pyrandtoys-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyrandtoys 1.0.0
File Interpreter ABI Platform Actions
pyrandtoys-1.0.0-py3-none-any.whl Python 3 none any Details for pyrandtoys-1.0.0-py3-none-any.whl

Total release size: 8.5 kB

Release files / pyrandtoys-1.0.0.tar.gz

Download URL pyrandtoys-1.0.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9789a451d48b043a0550da84fc5e31485a3fabfe821e7411b8ac25206c7928ca
BLAKE2b-256 checksum
How to use checksums
e86cb69ddda8df2b3757397dc03f1172f7d7238968228acccf27f315f70c74ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1

Release files / pyrandtoys-1.0.0-py3-none-any.whl

Download URL pyrandtoys-1.0.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eee59ed93dafbf38f35f38fce2b4686d4b71a1b102c8e69f1e6c29e412603b51
BLAKE2b-256 checksum
How to use checksums
462bbd9749fef2b84f00246a931913af1a771d067089a202dcd08121124776ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1

Security for pyrandtoys 1.0.0

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