Need advice on how to procedurally generate a level consisting of rooms

I need to generate a level and it has to consist of rectangular rooms with a door in each wall. The walls need to have random length and the room must have a floor. I accomplished this in Unity engine, but later I decided to switch to Unreal. So I suppose I have to create 2 rectangles as parts for each wall and place a door between them. I’d like to know what classes and functions I can use for this, either via Blueprint or code.