elm-community/random-extra/3.2.0

Random.Dict

Extra randomized functions on dicts.

Generators

Int
-> Generator comparable
-> Generator value
-> Generator (Dict comparable value)

Generate a random dict with given length, key generator, and value generator

randomLength10StringIntDict =
    dict 10 (englishWord 10) (int 0 100)
Int
-> Int
-> Generator comparable
-> Generator value
-> Generator (Dict comparable value)

Generate a random dict of random length given a minimum length and a maximum length.