[solved] Random generation room not working

We’ve been trying to randomly generate room as per this tutorial

However,

  • it is generating rooms in only one direction and not even dead-end rooms.
  • And it’s generating rooms on left only, instead of right
    What are we doing wrong?

Code:

At the beginning of scene:
image

Output:

I don’t know about all of the code but this is reversed. As is the 4 to 5 would never trigger.
It can’t be both <= 4 and >=5
image

should be

Thanks @Keith_1357
What a silly mistake I made!

1 Like