uniform and stratified sampling work