Random Sampling Methods Python Definition Function