Have you ever created code that didn't do what it was meant to do but ended up doing something cooler? A bug that (actually) was a feature or created something new by accident?
For example when I was first learning to program. I started playing with demo graphics code from hornet.org in assembler and c. I was trying to change some code to do what I wanted. I accidentally ended up with a moving plaid and a rotating palette that turned out to be a pretty neat looking effect.
Anybody else have something like this happen while coding?