random generation doors help

Godot Version

4.7

video: quwatz_
Procedural Dungeons in Godot 4 | Tutorial

Question

Im trying to follow this video and I am at the 30 minute mark where I am making door tiles. The intended result should have door tiles on every room, but I only have door tiles on a single room like this:

This is the function i copied from the video:

I fixed it. it turns out on when I was appending my room tiles, that line was included in the looped code, so I just removed that so it would only be used once.