by good fortune; fortunately or luckily.
By serendipity; by blind luck in combination with wisdom; by fortunate accident.