Patients ( @ years ) with a diagnosis of COPD who had received treatment for three or more exacerbations in the previous year were randomly assigned , via a computer-generated randomisation sequence with permuted block sizes of ten , to receive @ mg azithromycin or placebo three times a week for @ months .