greenido's wordCount fix in every step, moved new Random out of document constructor