I\'m a bit at a loss as to how to find a clean algorithm for doing the following:
Suppose I have a dict k:
>>> k = {\'A\': 68, \'B\': 62, \'
one should also look at this link
make two list for k, say xk and yk
xk
yk
from scipy import stats custm = stats.rv_discrete(name='test', values=(xk, yk)) custm.rvs(size=1)