Used guns always have a potential for problems, but usually the gun is OK, or something minor needs attention. Good information is always helpful, get, and read "The Competitive AR-15" by Dezeeker Press (sp) and you will learn all you can absorb about AR accuracy and how to get it.
The first thing I would do is a detail inspection, starting with the muzzle crown. If someone has been cleaning the barrel from the wrong end, it is possible to nick the muzzle crown, which has a very bad effect on accuracy. Remove the bolt assembly and look at the muzzle crown inside the flash hider. Any nicks or signs of uneven wear anyplace on the crown? If so it may need to be recrowned to restore it's accuracy.
If this seems OK, then a really good barrel cleaning is in order. Make sure to use a Dewey or othe high quality coated rod with correct, high quality brushes and jags and an AR15 Bore Guide in the reciever. Clean first with a regular bore solvent to remove carbon. Clean the chamber throughly with a GI M16 Chamber Cleaning Brush. In the barrel, once you get clean patches with ordinary solvent, switch to the new Remington Barrel Cleaner/Rem Oil combination or use Brownell's JB Bore Polish with Kroil Oil. Both use a very mild, non-embedding abrasive to remove ALL contamination from the lands and grooves. They are what the military Service Rifle Match Teams use and will not harm your bore.
Now buy a selection of some really good ammo in various bullet weights - say, Federal 69 grain match, some Black Hills match in various weights, etc. AVOID Wolf Russian and other cheap junk. US made "White Box" Winchester or Federal is a much better alternative. Colt actually recommends against Wolf in their Armorer schools due to many dismal reports of gas system and chamber fouling from Police Armorers.
Use a careful bench technique if you are skilled. Keep in mind that the weapon does not touch the sandbags - the hands that hold the weapon do, but not the gun itself. If in doubt, find one of your local Service Rifle high level shooters and let them target it for you. This will confirm or deny your own results.
Again, get the book, clean the rifle and use good ammo. I suspect you will get better results this way.
Warmly, Col. Colt
Certified Law Enforcement Trainer
Certified Glock, Colt and Remington LE Armorer