import random


def shuffle(seq):
    """Shuffle a list randomly using Knuth's algorithm.

    The method randomly shuffles a list by iterating over each position and
    exchanging the element with another random element.
    The original list is not maintained and will change.

    Args:
        seq: A list to shuffle.

    Returns:
        The original list with all elements shuffled.
    """

    N = len(seq)
    for i in range(N - 1):
        j = random.randint(i+1, N-1)
        seq[i], seq[j] = seq[j], seq[i]
    return seq