import random


def random_bitstring(n):
    """
    Generates a random bitlist of length n.

    Examples
    ========

    >>> random_bitstring(3)  # doctest: +SKIP
    100

    """
    return ''.join([random.choice('01') for i in range(n)])