generate random strings by pattern, including checksums and verification