added random sampling at the xpath level