This is documentation for an old release of SciPy (version 0.7.). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.maxentropy.sample_wr

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