weighted_random_index

weighted_random_index(data, num_samples, weights)