def create_random_string(length=<NUM_LIT:7>, chars='<STR_LIT>',<EOL>repetitions=False):
if repetitions:<EOL><INDENT>return '<STR_LIT>'.join(random.choice(chars) for _ in range(length))<EOL><DEDENT>return '<STR_LIT>'.join(random.sample(chars, length))<EOL>
Returns a random string, based on the provided arguments.

It returns capital letters and numbers by default.
Ambiguous characters are left out, repetitions will be avoided.