Algorithm List Weighted Random Sampling Algorithm Note that: the main method of WeightedRandomSampling class contains the sample data to call the algorithm.