If you want to use this map generation in unity. Download only "Procedural Map Generation" named file and add as unity project. Open the premade scene and run the game. If u want to see how I wrote ...
Random Walk: carves organic cave-like layouts by randomly walking on a grid and marking tiles as floor. BSP (Binary Space Partitioning): splits the map into partitions, places rooms, and connects them ...