Synonyms for By luck:

adv.

all (adverb)
by chance, haply.

n.

by luck (noun)
by chance, haply.