Dreaming involves confused memories and fantasies being temporarily confused with reality. Daydreams are common and involve mundane thoughts, while nightdreams occur 4-5 times per night and last 10-30 minutes. Nightdreams are often illogical, bizarre, and unpleasant. Some theories suggest dreams reflect unconscious desires (psychodynamic theory) or are products of random brain activity given meaning by memory (activation-synthesis theory). Extensions to waking life theory agrees dreams relate to thoughts and emotions from when awake.