There are a lot of generators that return a sequence (list, vector, tuple, map, string, etc). Sometimes it us useful to set size limits, either min or max, on the generated sequence. It would be nice to have a generator that would accept a sequence generator and ensure that the sequences are of a certain length. Three examples would be:

(of-length min max gen)

(of-max-length max gen) => (of-length 0 max gen)

(of-min-length min gen) => (of-length min nil gen)

of-length check the length of the generated sequence. If it is too small, use (take min (cycle s)) to extend the length of the sequence.

If it is too long, use (take max s) to return the max length

It will need to be careful to return the same type it received.

If it does not receive a sequence, treat it as though it was one element sequence.

If min is not 0, use such-that not nil to ensure a proper seq is generated.