Return a k sized list of elements chosen from the population with replacement. If the population is empty, raises IndexError.
random.choices(population, weights=None, *, cum_weights=None, k=1)