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 randperc”
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.3.tar.gz
(2.5 kB
view details)
File details
Details for the file randpercent-0.0.3.tar.gz.
File metadata
- Download URL: randpercent-0.0.3.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 |
72e25ed57c9ce6f12743b29e131443fdbc8d242fec38ba8a6c4d3a2b0e10856f
|
|
| MD5 |
16644b2ff7e4318f1f0585a96226e01b
|
|
| BLAKE2b-256 |
d0bbdd18b4945f5c5cee9bbe44facade1a8b3a4a92609ce7c6923e97fecda1f1
|