def shift_by_bit(bitstring):
    return flip_positions(bitstring, [random_object.randrange(len(bitstring))])