I think there's an element of luck, but as someone who did consistently well on exams, I'd like to think that luck was only a small part of it, though I'm obviously biased. I did, however, take some exams I thought I aced that I didn't do so well in, and took some I was worried about that I ended up acing.So, my guess is that I had a little bad luck, and a little good luck. But you still need a solid foundation of knowledge if you hope to have enough "luck" to get an A. I think part of the "luck" mystique comes from disillusioned law students who spent lots of time studying but didn't do so well. To them, what else could they attribute their mediocre grades but luck? The person surfing the internet in class in front of him who did better on the exam must have been "lucky."But, to keep some perspective, I don't know anyone who did well without doing any work--not to say that people who do well have no lives, but a certain baseline is required. You have to familiarize yourself with all the material, through whatever method works for you, and, before you take the exam, you have to have an idea how to apply the material to fact scenarios you have not yet seen (usually through practice exams). Some luck may also come from differences among professors, particularly in 2nd and 3d year courses. And, you could always get sick, or have some distracting personal matter arise, right around exam time. But overall, I find myself agreeing with Thomas Jefferson: "I'm a great believer in luck, and I find the harder I work, the more I have of it."