Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

RandomListOrDictGenerator-1.0.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file RandomListOrDictGenerator-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for RandomListOrDictGenerator-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d3ece9d3b39db4d18d1878423206061a9aa8b7c422599a9b90d15ed3ea26d2f
MD5 f07d163de5d8789400db8533638fa591
BLAKE2b-256 4206b8ba80f5dbdd8427bfba9c3b362dbe291a03a86ec3ce837c25aef727c3a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page