a library that simplifies writing code using "random" library
Project description
rpp-t
rpp-t is RandomPlusPLus Tools. So to speak, an extension for the random module
Package functions:
the first function
the first thing I started with was Rlist
it makes it easier to write code to randomize the list by 9.5 times.
import rppt
rppt.Rlist([1,2,3,4,5,6,7,8,9], [1,2,3])# <---------+
# here for randomization ^ |
# and here that these symbols would be an exception +
# you can also choose not to enter a list of exceptions.
Rlist has a total of 8 functions. let's go through them too!
myRandomList = rppt.Rlist([1,2,3,4,5]) - since 'Rlist` is a class, it can be assigned
to a variable
-
myRandomList.Rlist()- changes values -
myRandomList.AppendMainList([6,7,8])- adds numbers from the argument to the list -
myRandomList.AppendBlackList([1,3,5])- adds a blacklist -
myRandomList.SetSeed('seed')- changes the seed of generation -
myRandomList.SetOutput('4')- changes the output -
myRandomList.GetMainList('list/str')- displays the main list you can set the type:
list or str, or you can not set -
myRandomList.GetBlackList('list/str')- displays the blacklist you can set the type:
list or str, or you can not set -
myRandomList.GetList('list/str')- displays a list without items that are in the blacklist
you can set the type: list or str, or you can not set
at the moment, the functions of the library rppt are completed.
but it is updated every day. don't miss it and keep an eye on this page!
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rppt-1.1.2.tar.gz.
File metadata
- Download URL: rppt-1.1.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d0813ca7260897f729b75860d57b5da61a064395eb8b92d8b0da26e9e62a3cd
|
|
| MD5 |
e32b4e49d5e3ad8acf3d27d7cad47465
|
|
| BLAKE2b-256 |
81694b4c041868ca1deeef23a1fb97485e41d8f04e12f94c45e0cd5789773a99
|
File details
Details for the file rppt-1.1.2-py3-none-any.whl.
File metadata
- Download URL: rppt-1.1.2-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b64a0de93490bf6d4b35122eba9835c50850106eed399365208d333440bf25c
|
|
| MD5 |
e62577b576cf76a6c675371ab5e9bb00
|
|
| BLAKE2b-256 |
1d9d7e2907337cfd0bbac87eb4b6d0b3f905b2a6194aec09159410db0d01dcb5
|