you seem to be confusing luck with experience and skill.
what was luck was that the scouting plane flying above tf-16 didn't spot them, and even there it's debatable since the task forces where there intentionally due to an overcast weather forecast and that overcast weather was what allowed them to remain hidden.
I may concede that yorktown being bombed twice was luck, or at least unlucky for the Japanese, but even then damage party skill played an important factor in the event.
what was luck was that the scouting plane flying above tf-16 didn't spot them, and even there it's debatable since the task forces where there intentionally due to an overcast weather forecast and that overcast weather was what allowed them to remain hidden.
I may concede that yorktown being bombed twice was luck, or at least unlucky for the Japanese, but even then damage party skill played an important factor in the event.