def unbias_some_entrances(Dungeon_Exits, Cave_Exits, Old_Man_House, Cave_Three_Exits):

    def shuffle_lists_in_list(ls):
        for (i, item) in enumerate(ls):
            if isinstance(item, list):
                ls[i] = random.sample(item, len(item))

    def tuplize_lists_in_list(ls):
        for (i, item) in enumerate(ls):
            if isinstance(item, list):
                ls[i] = tuple(item)
    shuffle_lists_in_list(Dungeon_Exits)
    shuffle_lists_in_list(Cave_Exits)
    shuffle_lists_in_list(Old_Man_House)
    shuffle_lists_in_list(Cave_Three_Exits)
    if (Cave_Three_Exits[1][0] == 'Paradox Cave Exit (Bottom)'):
        i = random.randint(1, 2)
        Cave_Three_Exits[1][0] = Cave_Three_Exits[1][i]
        Cave_Three_Exits[1][i] = 'Paradox Cave Exit (Bottom)'
    tr_fixup = False
    for (i, item) in enumerate(Dungeon_Exits[(- 1)]):
        if ('Turtle Rock Ledge Exit (East)' == item):
            tr_fixup = True
            if (0 != i):
                Dungeon_Exits[(- 1)][i] = Dungeon_Exits[(- 1)][0]
                Dungeon_Exits[(- 1)][0] = 'Turtle Rock Ledge Exit (East)'
            break
    if (not tr_fixup):
        raise RuntimeError("TR entrance shuffle fixup didn't happen")
    tuplize_lists_in_list(Dungeon_Exits)
    tuplize_lists_in_list(Cave_Exits)
    tuplize_lists_in_list(Old_Man_House)
    tuplize_lists_in_list(Cave_Three_Exits)
def unbias_some_entrances(Dungeon_Exits, Cave_Exits, Old_Man_House, Cave_Three_Exits):

    def shuffle_lists_in_list(ls):
        for (i, item) in enumerate(ls):
            if isinstance(item, list):
                ls[i] = random.sample(item, len(item))

    def tuplize_lists_in_list(ls):
        for (i, item) in enumerate(ls):
            if isinstance(item, list):
                ls[i] = tuple(item)
    shuffle_lists_in_list(Dungeon_Exits)
    shuffle_lists_in_list(Cave_Exits)
    shuffle_lists_in_list(Old_Man_House)
    shuffle_lists_in_list(Cave_Three_Exits)
    if (Cave_Three_Exits[1][0] == 'Paradox Cave Exit (Bottom)'):
        i = random.randint(1, 2)
        Cave_Three_Exits[1][0] = Cave_Three_Exits[1][i]
        Cave_Three_Exits[1][i] = 'Paradox Cave Exit (Bottom)'
    tr_fixup = False
    for (i, item) in enumerate(Dungeon_Exits[(- 1)]):
        if ('Turtle Rock Ledge Exit (East)' == item):
            tr_fixup = True
            if (0 != i):
                Dungeon_Exits[(- 1)][i] = Dungeon_Exits[(- 1)][0]
                Dungeon_Exits[(- 1)][0] = 'Turtle Rock Ledge Exit (East)'
            break
    if (not tr_fixup):
        raise RuntimeError("TR entrance shuffle fixup didn't happen")
    tuplize_lists_in_list(Dungeon_Exits)
    tuplize_lists_in_list(Cave_Exits)
    tuplize_lists_in_list(Old_Man_House)
    tuplize_lists_in_list(Cave_Three_Exits)