Random events

I need help with making random events. What coding do I have to put in to make certain events occur, and that when it happens, for instance in a game, the navigation is with arrows, and then at a certain point, just a completely random thing pops up and all.

Thanks
G/B