An apparatus for testing electro-mechanical storage devices, such as disk
drives, is provided. A testing device in a digital computer selects test
parameters from an array of test parameters stored in the digital
computer. A random number generator is used in the selection of the test
parameters. When errors occur, the array of test parameters is dynamically
adapted during testing to change the probability of selecting certain test
parameters in response to the error.