elm-community/elm-random-extra/1.0.1

NOTE: this package is not compatible with Elm 0.19.1

Random.Dict

List of Dict Generators

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)
emptyDict : Generator (Dict comparable value)

Generator that always generates the empty dict

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.