I guess you meant "przypadkiem" and "przypadkowo", which are both accepted answers, and appear to have equal status as answers.... (not really an answer to your question, I know).
As "przypadkowo" in that adverbial form hasn't made it into Wiktionary, it is perhaps to be considered more rare.