cd_randomizer
cd_randomizer is a Python package for randomizing CDs.
Installation
You can install cd_randomizer using pip:
pip install cd_randomizer
Usage
Here is a simple example of how to use cd_randomizer:
from cd_randomizer.rand import Randomizer as rando
a_list = [1,2,3,4,5]
# Example usage
item = rando.random_list_item(a_list)
print("random item", item)
rando.randomize_list(a_list) # it will shuffle in place, no nee to make another list
print(a_list)
decimal = rando.random_decimal(2.50005, 4.0, round_to=3)
print("random decimal(float)", decimal)
list_item = rando.random_list_item(a_list)
print("random list item", list_item)
rand_number = rando.random_number(1, 100)
print("Random whole number between 1 and 100", rand_number)
rand_items = rando.random_sample_of_a_list(a_list, 3)
print("3 random list items", rand_items)
Examples
For more examples, please refer to the examples folder.
Contributing
Contributions are welcome! For major changes, please open an issue first to discuss what you would like to change.
More documentation at:
License
Metadata
Release files for cd-randomizer 0.0.2
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 | Actions |
|---|---|---|---|---|
| cd_randomizer-0.0.2.tar.gz | 3.7 kB | Without provenance | Details for cd_randomizer-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cd_randomizer-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for cd_randomizer-0.0.2-py3-none-any.whl |
Total release size: 9.6 kB
Release files / cd_randomizer-0.0.2.tar.gz
| Download URL | cd_randomizer-0.0.2.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
005fd021ce371499540fc27faa37c7904e37ff26887a0493c4a8219d6d2ee7e3
|
|
BLAKE2b-256 checksum How to use checksums |
fc138d630f45ec7d8dfea265144d593c8bdf4c6d62c34b5062d07b789dcafd26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / cd_randomizer-0.0.2-py3-none-any.whl
| Download URL | cd_randomizer-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e3364330446e316313f264982b65ca85c603292498c67b37471bd01c3789987b
|
|
BLAKE2b-256 checksum How to use checksums |
195b46a41382ef22abc27a7a579f461209df4f8bbf4bef6c0239b18cc37d0e81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for cd-randomizer 0.0.2
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.