modify the random sampling section