import random


def generate_vectors(length, amount):
    """
    Generates amount vectors of length.
    For a (n,k,d) code this is the k parameter """
    return [\
            [random.randint(0,1) for i in range(length)] \
            for j in range(amount)
            ]