How to spawn different ledges at two different points one by one randomly?

I want to know how to spawn ledges at different points one at some gap and other at normal distance in my 2d endless runner one by one. I tried my self but some times too many ledges spawn at once and sometimes the ledge with gap do not spawn.

The answer to this might become describing how to make an endless runner so, might be a bit much to ask for someone to make a tutorial - but as advice Id say create a couple of finished sections, one with no gap, one with 2 jumps etc etc, then randomize them, as long as you keep your start and end points for all the sections on about the same height you should be able to neatly make them work - no matter what section is spawned next.

Hope that helped
// cheers