Pattern interpreter for generating random strings.