Help with room generation

Hi I’m pretty new to Core and was wondering how I can make a script that chooses 100 random rooms and then attaches the rooms together kinda like the popular Roblox game called Doors. I would also like to have some rooms be able to spawn more rarely than others. How would I do this?