More adjustable random functions
Generating adjustable random values, from min to max with numbers to adjust.
For example, we have values from 1 to 10.
If number 2 and 3 will be in numbers to adjust with k=5, final array will look like this:
[1,2,2,2,2,2,3,3,3,3,3,4,5,6,7,8,9,10]
and chance of random.choice for those values will be increased
Examples
Run basic functions
from adjustable_random import (
get_adjustable_random_list,
get_adjustable_random_value
)
if __name__ == '__main__':
adjustable_list: list[int] = get_adjustable_random_list(
min_value=0,
max_value=100,
numbers_to_adjust=[
10,15
]
)
adjustable_value: int = get_adjustable_random_value(
min_value=0,
max_value=100,
numbers_to_adjust=[
10,15
]
)
print(f"{adjustable_list=}")
print(f"{adjustable_value=}")
Run tests to see how it works
from adjustable_random import (
init_random_values,
run_graph_test
)
if __name__ == '__main__':
values: list[int] = init_random_values()
run_graph_test(values)
Metadata
Release files for adjustable-random-package 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| adjustable_random package-1.1.tar.gz | 3.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| adjustable_random_package-1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.9 kB
Release files / adjustable_random package-1.1.tar.gz
| Download URL | adjustable_random package-1.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
848638d5f1fdac982bd8501767af8c9ce218d669d232aff667cf41bbb15f76c0
|
|
BLAKE2b-256 checksum How to use checksums |
171d1b70d97c9b77fb5747d895aa658057b706efef207eab6a11efd56d26297b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|
Release files / adjustable_random_package-1.1-py3-none-any.whl
| Download URL | adjustable_random_package-1.1-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2052c40d528a598560549b09acf26ac2bb116e020926add5a99c059b6e16f56e
|
|
BLAKE2b-256 checksum How to use checksums |
78306297942fefe3f13938705bf36e1d8bcc1c39ef2aa0cf3652da59c029963a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|
Security for adjustable-random-package 1.1
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.