Creating random events

So i’m making a platformer-type game, where the objective is to jump over/slide under obsticals. Now, in games like Mega Jump : https://www.google.com/#hl=en&sugexp=pfwl&tok=mlakaorhmDlEkzXaoWAYyQ&cp=6&gs_id=m&xhr=t&q=mega+jump&pf=p&sclient=psy-ab&site=&source=hp&pbx=1&oq=mega+j&aq=0&aqi=g3g-s1&aql=&gs_sm=&gs_upl=&fp=1&biw=1366&bih=667&bav=on.2,or.r_gc.r_pw.,cf.osb&cad=b

The coins and power ups are randomly generated, but specified enough so it is always possible to achieve success.
(Look at games like Doodle Jump for more examples)

How would I go about doing this? I have though about doing normal random creations after a certain amount of time so the tiles would match up, but it might make it not achievable. I need the things you are jumping over, and sliding under to be random, as to not bore the player with the same repetitive game play.

Any suggestions would be great, thanks!

Bumpity bump

I’m not sure what you’re asking. Why not just have each coin spot be a potential coin spot and then randomize whether or not one will be placed?

I guess I could, but that would require me to plan out a huge map, whereas it would be easier to do it randomly :confused:

You could create sections. Each section would have a pass value where the coins on it would be the amount it takes to pass that section. If the player makes it past without using more coins he is ahead, if not he is behind. String a few sections like that together and call it a map.