Map generation

Hello all,
Lately I have been absolutely captivated and obsessed by the simple beauty that a good ASCII Rougelike type game can possess, like Stone Soup, and I am thinking of creating my own. I do need help with the map generation though. I am wondering, does anyone know how to generate a dungeon/maze type of thing randomly where there are rooms or passages? Endless seemed like a good place to start(that is an amazing project by the way) but it seems I cannot understand the code. Could someone please explain to me how to do this? Thank you.
-The Solder King

@TheSilderKing Do a forum search on “maze” generation. There are several that you’ll find.

Thank you @dave1707!