scipy.maxentropy.sample_wr

scipy.maxentropy.sample_wr(population, k)
Chooses k random elements (with replacement) from a population. (From the Python Cookbook).