Random Sampling Methods Python Definition