Script to test infinite monkey theorem