restricted random sampling