Generate random list/dictionary
Project description
Python-random-dictionnary-list-generator
Class to generate random list or dictionnary in python
-
This object is used to automatically generate a list or a dictionary according to the size you specify.
-
This size is defined at the instantiation of the object.
-
By default, it generates a list or a dictionary of 5 elements.
-
You can also specify the size of the list or dictionary when calling the method.
-
You can also specify the size of keys/values when instantiating or calling the object
-
examples :
-
#Instantiation with default parameters
rd_ld = RandomListOrDictionnary(size=5, key_length=3, values_length=5)
-
#We can specify the size
my_list = rd_ld.createRandomDictionnary(3)
my_dict = rd_ld.createRandomList(3)
-
-
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 Distributions
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 RandomListOrDictGenerator-1.0.0-py3-none-any.whl.
File metadata
- Download URL: RandomListOrDictGenerator-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d3ece9d3b39db4d18d1878423206061a9aa8b7c422599a9b90d15ed3ea26d2f
|
|
| MD5 |
f07d163de5d8789400db8533638fa591
|
|
| BLAKE2b-256 |
4206b8ba80f5dbdd8427bfba9c3b362dbe291a03a86ec3ce837c25aef727c3a1
|