import string
import random


def random_text(length, alph=string.ascii_letters + string.digits):
    """ Random text generator. NOT crypto safe.

    Generates random text with specified length and alphabet.
    """
    return ''.join(random.choice(alph) for _ in range(length))