import string
import random


def random_str(length=8):
    """ Return random string of specified length """

    choose_from = string.ascii_letters + string.ascii_uppercase + string.digits
    return ''.join(random.choice(choose_from) for _ in range(length))