haphazard vs randomly

haphazard

adj
  • Random; chaotic; incomplete; not thorough, constant, or consistent. 

noun
  • Simple chance, a random accident, luck. 

randomly

adv
  • By random access; at any point at a given time; not sequentially. 

  • In a random manner. 

How often have the words haphazard and randomly occurred in a corpus of books? (source: Google Ngram Viewer )