Sentence:  He had not even thought about her much except once or twice at night in bed when his slowly ranging thoughts would <WSD>abruptly</WSD> , almost accidentally , encounter her . 
Meaning of the word marked with <WSD> tags:  quickly and without warning