fixes to random sample, added count hits