Borrowed from Arabic تَصَادُفًا (taṣādufan), adverbial accusative of تَصَادُف (taṣāduf). By surface analysis, tasodif + -an. Compare Turkish tesadüfen.
tasodifan