def METHOD_NAME(self):
    if self.coding_method == "random":
        return tuple(self._rng.randint(0, 1) for _ in range(self.code_size))
    elif self.coding_method == "exact":
        i = next(self._integers)
        b = bin(i)[2:]  # convert to a string of 0s and 1s
        b = b.zfill(self.code_size)  # ensure the code is of length code_size
        return tuple(int(c) for c in b)