def faux_string(items, str_type=None, *args, **kwargs):
item = <NUM_LIT:0><EOL>if not str_type:<EOL><INDENT>str_type = fauxfactory.gen_choice(STRING_TYPES)<EOL><DEDENT>if not isinstance(str_type, list):<EOL><INDENT>str_type = [str_type]<EOL><DEDENT>str_cycle = cycle(str_type)<EOL>length = kwargs.get('<STR_LIT>', None)<EOL>if not length:<EOL><INDENT>length = [None]<EOL><DEDENT>if not isinstance(length, list):<EOL><INDENT>length = [length]<EOL><DEDENT>length_cycle = cycle(length)<EOL>while item < items:<EOL><INDENT>str_type = next(str_cycle)<EOL>kwargs['<STR_LIT>'] = next(length_cycle)<EOL>yield fauxfactory.gen_string(str_type, *args, **kwargs)<EOL>item += <NUM_LIT:1><EOL><DEDENT>
Generate a new string type.