Several groundbreaking scientific discoveries have happened by accident, for example the effect of X-rays, penicillin, the microwave oven, plastic and Viagra. I have experienced an accidental scientific discovery myself, where a programming error in the implementation of an entropy-based metric turned out to be advantageous in my research, something that subsequently also could be verified theoretically.
Have any of you experienced anything similar? Can such accidental scientific discoveries, which may be groundbreaking as the examples show, be utilised in any structured way? For example by using some sort of process for performing controlled accidental experiments?