finished method for sampling random patches