by chance

adverbs

through chance, "To sleep, perchance to dream.."
by accident
"betrayed by a word haply overheard"
without advance planning
"they met accidentally"