import random


def random_from_alphabet(size, alphabet):
    """
    Takes *size* random elements from provided alphabet
    :param size:
    :param alphabet:
    """
    return list(random.choice(alphabet) for _ in range(size))