How do you procedurally generate meshes

Hi. I’m trying to procedurally generate obstacles the further into the game you get. I have never tried doing this before so yeah.