I think numpy.random.choice(a, size=None, replace=True, p=None)
may well be what you are looking for.
The p
argument corresponds to the prob
argument in the sample()
function.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments