elm-community/random-extra/2.0.0

NOTE: this package is not compatible with Elm 0.19.1

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.