How do I make the obstacles in a 2d game go forever?

I am making a flappy bird kind of game. And I do not know how to make the obstacles go forever and be chosen randomly. Please help

This isn’t exactly the right setup but the concept is essentially the same, this tutorial covers how to create the environments and assets that spawn endlessly the concepts can be applied to a 2d game (just with different assets and perspective):

https://docs.unrealengine.com/latest/INT/Videos/PLZlv_N0_O1gbY4FN8pZuEPVC9PzQThNn1/yS-yQfo0lc0/index.html