import string
import random


def random_string(size):
    """Generate a random string of size `size`.

    """

    choices = string.ascii_lowercase + string.ascii_uppercase + string.digits + '\n'

    return ''.join(random.choice(choices) for _ in range(size))