"the brain creates dreams through random electrical activity. Random is the key word here. About every 90 minutes the brain stem sends electrical impulses throughout the brain, in no particular order or fashion. The analytic portion of the brain -- the forebrain -- then desperately tries to make sense of these signals. It is like looking at a Rorschach test, a random splash of ink on paper. The only way of comprehending it is by viewing the dream (or the inkblot) metaphorically, symbolically, since there's no literal message.
This doesn't mean that dreams are meaningless or should be ignored. How our forebrains choose to "analyze" the random and discontinuous images may tell us something about ourselves, just as what we see in an inkblot can be revelatory. And perhaps there is a purpose to the craziness: Our minds may be working on deep-seated problems through these circuitous and less threatening metaphorical dreams.
Here are some other things you may have noticed about your dreams:
Dreams tell a story. They are like a TV show, with scenes, characters and props.
Dreams are egocentric. They almost always involve you.
Dreams incorporate things that have happened to you recently. They can also incorporate deep wishes and fears.
A noise in the environment is often worked in to a dream in some way, giving some credibility to the idea that dreams are simply the brain's response to random impulses.
You usually cannot control a dream -- in fact, many dreams emphasize your lack of control by making it impossible to run or yell. but you may be able to lucid dream."