elm-community/random-extra/2.0.0

NOTE: this package is not compatible with Elm 0.19.1

Random.String

Extra randomized functions on strings.

Create a String

string : Int -> Generator Char -> Generator String

Generate a random string of a given length with a given character generator

fiveLetterEnglishWord = string 5 Random.Char.english
rangeLengthString : Int -> Int -> Generator Char -> Generator String

Generates a random string of random length given the minimum length and maximum length and a given character generator.