A bad coil would not cause a random miss most the time. I bet your egr is sticking open a bit. Hook up to a scanner and have them look at the egr position if it is about 0 at idle theres your problem.