Run across (someone or something)

To meet someone unexpectedly, to find something unexpectedly.

I ran across an old friend in the library.