Sampling random data with weighted lists python 3.6 and above
population: It is is sequence or data structure from which you want to choose data.
weights or cum_weights: Define the selection probability for each element.
weights: If a weights sequence is specified, random selections are made according to the relative weights.
cum_weights: Alternatively, if a cum_weights sequence is given, the random selections are made according to the cumulative weights.
k: The number of samples you want from a population.