A library to generate booleans with a given percentage.
Project description
There is a total of 2 functions in this library: RTrue(perc) —> perc can either be a float or an integer. There is a “perc”-percent chance that the function will return True, otherwise it will return False. RFalse(perc) —> perc can either be a float or an integer. There is a “perc”-percent chance that the function will return False, otherwise it will return True. Same logic, but the output is reversed.
–> “import randpercent”
Change Log
0.0.2 (4/03/2021)
changed name
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
randpercent-0.0.2.tar.gz
(2.5 kB
view details)
File details
Details for the file randpercent-0.0.2.tar.gz.
File metadata
- Download URL: randpercent-0.0.2.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
609bd300bfe17c0c35ac6f36ba08cd904efb1d369a10e52b50b4e73789fe3648
|
|
| MD5 |
5f159436e6863b7796faf0913b477bb5
|
|
| BLAKE2b-256 |
31c7f7c634f49b5b8d72aae1740092e5e9863713b8701bd6a92899de7b391981
|