random sampling and uncertainty sampling finished