import random


def random_seq(length: int,
               charset: str = "ATCG") -> str:
    """Get a random sequence.

    :param length: Length of sequence.
    :param charset: Char population.
    :return: Random sequence
    """
    return "".join(random.choices(charset, k=length))