Random sampling and stratified sampling