from typing import List
import random


def rotate(seq: List):
    """
    Rotate a sequence

    Args:
        seq: a sequence

    Returns:
        - rotated sequence
    """
    idx = random.randint(0, len(seq) - 1)
    seq = seq[idx:] + seq[:idx]
    return seq