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
Hashes for RandomListOrDictGenerator-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d3ece9d3b39db4d18d1878423206061a9aa8b7c422599a9b90d15ed3ea26d2f |
|
MD5 | f07d163de5d8789400db8533638fa591 |
|
BLAKE2b-256 | 4206b8ba80f5dbdd8427bfba9c3b362dbe291a03a86ec3ce837c25aef727c3a1 |