chickadee » srfi-252 » string-generator

string-generatorprocedure

Create an infinite generator that returns strings. The generator should return an empty string first, then a series of strings with uniformly randomly distributed contents and lengths. The maximum length of the generated strings is chosen by the implementation.

    (define string-gen (string-generator))

    (string-gen) ; => ""
    (string-gen) ; => "..."